HTML - Rollovers!!! Help Please!
hey guys, im totally new here (hense noobwholoves) because i do, i do love web programming but im just new to it. im in bit of a pickle here, and would really appreciate the help. i have a website with 6 circles in 2 rows of 3 that are all black and im trying to make so that whenever i have the mouse on the a black circle the opposite black circle turns red. for example, when i have the mouse over the first black circle, the last black circle turns red and when i take the mouse out the page goes back to having 6 black circles. so ive tried and but it doesnt seem to be working
<a onmouseover="set_src('black_dot1', 'red.jpg')" onmouseout="set_src('black_dot1', 'black.jpg')"> <img src="black.jpg" name="black_dot1"> </a> </td> <td> <a onmouseover="set_src('black_dot2', 'red.jpg')" onmouseout="set_src('black_dot2', 'black.jpg')"> <img src="black.jpg" name="black_dot2"> </a> </td> <td> <a onmouseover="set_src('black_dot3', 'red.jpg')" onmouseout="set_src('black_dot3', 'black.jpg')"> <img src="black.jpg" name="black_dot3"> </a> </td> </tr> <tr> <td> <a onmouseover="set_src('black_dot4', 'red.jpg')" onmouseout="set_src('black_dot4', 'black.jpg')"> <img src="black.jpg" name="black_dot4"> </a> </td> <td><a onmouseover="set_src('black_dot5', 'red.jpg')" onmouseout="set_src('black_dot5', 'black.jpg')"> <img src="black.jpg" name="black_dot5"> </a> </td> <td> <a onmouseover="set_src('black_dot6', 'red.jpg')" onmouseout="set_src('black_dot6', 'black.jpg')"> <img src="black.jpg" name="black_dot6"> </a> </td> </td> </table> </body> </html> http://www.cdf.toronto.edu/~c8khanma...stion_two.html what am i do wrong?? Similar Tutorialshttp://img64.imageshack.us/img64/2599/buttons1.jpg Is it possible to make rollovers like that? As in, you hover over an icon and the background image of that div changes. So in general, is it possible to hover over a link and make an image that's somewhere else ( not the background of that link) change? Thanks so much. Hi, I have a bunch of rollover / mouseover buttons for my web site. They work fine when I upload them to my host (freewebs) However, when I redirect using cjb.net's service, all of the rollover buttons don't work anymore. I was wondering if I could get rollovers to work when people are redirected to my site with a .cjb.net subdomain. Thanks! Well, the normal site is http://freewebs.com/clankapow/ and the redirect site is http://clankapow.cjb.net. Notice that the buttons do not turn yellow in the redirect site. hello, I am having a problem with some rollover graphics... the file works fine when I view on my local system, but once I upload to the server, the rollovers dont work anymore? I have no idea why... here is a link to the page: http://www.tryfluid.com/keepit/index.html I created the main navigation panel in fireworks. I then cut and paste the info into my site. Here is a link to the actual file that fireworks created: http://www.tryfluid.com/keepit/ARTheader_noSlice.html I am very new to fireworks, I used to use Imageready but recently upgraded to CS4 and Imageready has been discontinued. I can't figure out why the rollovers don't work once I upload the files... any help would be greatly appreciated... Thanks! Allen Im trying to make some links on my website: http://the1337arcade.com But i want them special links, so when people roll their mouse over them, it takes automatically to that page, and then on that page that they automatically go to, i want a back button so they can return to their previous place.. I know this is possible, because i have seen it before.. Please Assist me on this Thanks abunch ANup Hello, I am currently doing a small project on Yahoo - Geocities, and decided to add some Image Rollovers. I keep running into a problem though, and I'm not sure why. I'm not even close to a expert in HTML, which is probably why I'm having a problem. Anyways, could someone give me the HTML text that is involved in making a Image Rollover?... or pointing me to a very detailed tutorial explaining Image Rollovers will suffice. Also, is it true that Rollovers only work with GIF images? Any help is greatly appreciated I'm sure this question has come up before, but is there a work-around to make animated gif rollovers play more than once in IE? In FF, the rollovers play every time you mouseover (or, they start over). Here is my first attempt at a website from scratch: www.andymcginnis.com. You will see what I mean by rolling over the links. There's kind of like a waterfall effect. Thanks for any reply Hello, I have rollover images (the department blocks) on this page: www.buildersbestdoitcenter.com They work in the preview window of my html editor, and in the IE preview, but they don't work once I post. I'm not a code cruncher, but the error message I get is that there is a missing object. Any help on this would be greatly appreciated. Thanks. KH Hey guys, My company is building this website and it seems like we're having quite a bit of trouble with the rollovers and their alignment in Internet Explorer versions before 7. It would be awesome if any of you could give us some insight as to why (other than asking customers to upgrade their explorer or switching to firefox). Another thing is the portfolio section is falling a little too far below the title for a designer's comfort (we're a graphic design studio... not web experts).... how might I be able to fix it? I want to thank everyone who's helped us in the past and hope someone can help us again! Theia At the top of http://www.eastofedenevents.com/, the nav buttons all change except the "location" one-- It will not highlight in Firefox, on my Mac. It works fine in Safari, on a mac. Why is this? Thank you. Hi guys, this is the site: http://eksow.com/ This the the source code for it: Quote: <html> <head> <title>Eksow Event Design & Management</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <SCRIPT TYPE="text/javascript"> <!-- // copyright 1999 Idocs, Inc. http://www.idocs.com/tags/ // Distribute this script freely, but please keep this // notice with the code. var rollOverArr=new Array(); function setrollover(OverImgSrc,pageImageName) { if (! document.images)return; if (pageImageName == null) pageImageName = document.images[document.images.length-1].name; rollOverArr[pageImageName]=new Object; rollOverArr[pageImageName].overImg = new Image; rollOverArr[pageImageName].overImg.src=OverImgSrc; } function rollover(pageImageName) { if (! document.images)return; if (! rollOverArr[pageImageName])return; if (! rollOverArr[pageImageName].outImg) { rollOverArr[pageImageName].outImg = new Image; rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src; } document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src; } function rollout(pageImageName) { if (! document.images)return; if (! rollOverArr[pageImageName])return; document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src; } //--> </SCRIPT> <!-- ImageReady Slices (Untitled-1 copy.psd) --> <Center> <table id="Table_01" width="1024" height="769" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="6"> <img src="images/Eksow_01.jpg" width="1024" height="261" alt=""></td> </tr> <tr> <td rowspan="4"> <img src="images/Eksow_02.jpg" width="65" height="507" alt=""></td> <td> <A HREF="#" onMouseOver = "rollover('left')" onMouseOut = "rollout('left')" ><IMG SRC="http://eksow.com/images/Eksow_03.jpg" NAME="left" ALT="Home Page" BORDER=0 ></A> <SCRIPT TYPE="text/javascript"> <!-- setrollover("http://eksow.com/images/Rollover_1_03.jpg"); //--> </SCRIPT> </td> <td colspan="2"> <A HREF="#" onMouseOver = "rollover('middle')" onMouseOut = "rollout('middle')" ><IMG SRC="http://eksow.com/images/Eksow_04.jpg" NAME="middle" ALT="Home Page" BORDER=0 ></A> <SCRIPT TYPE="text/javascript"> <!-- setrollover("http://eksow.com/images/Rollover_2_04.jpg"); //--> </SCRIPT></td> <td> <A HREF="#" onMouseOver = "rollover('right')" onMouseOut = "rollout('right')" ><IMG SRC="http://eksow.com/images/Eksow_05.jpg" NAME="right" ALT="Home Page" BORDER=0 ></A> <SCRIPT TYPE="text/javascript"> <!-- setrollover("http://eksow.com/images/Rollover_3_05.jpg"); //--> </SCRIPT></td> <td rowspan="2"> <img src="images/Eksow_06.jpg" width="78" height="491" alt=""></td> </tr> <tr> <td colspan="4"> <img src="images/Eksow_07.jpg" width="881" height="262" alt=""></td> </tr> <tr> <td colspan="5"> <A HREF="#" onMouseOver = "rollover('bottom')" onMouseOut = "rollout('bottom')" ><IMG SRC="http://eksow.com/images/Eksow_08.jpg" NAME="bottom" ALT="Home Page" BORDER=0 ></A> <SCRIPT TYPE="text/javascript"> <!-- setrollover("http://eksow.com/images/Rollover_4_08.jpg"); //--> </SCRIPT></td> </tr> <tr> <td colspan="2"> <img src="images/Eksow_09.jpg" width="567" height="8" alt=""></td> <td> <img src="images/Eksow_10.jpg" width="21" height="8" alt=""></td> <td colspan="2"> <img src="images/Eksow_11.jpg" width="371" height="8" alt=""></td> </tr> <tr> <td> <img src="images/spacer.gif" width="65" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="292" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="275" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="21" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="293" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="78" height="1" alt=""></td> </tr> </table> </center> <!-- End ImageReady Slices --> </body> </html> Here is what I'm trying to accomplish, but have no idea where to start from... 1. When people go to the site, the pictures at the bottom don't appear 2. When people click on "Hospitality Night" (far left), then the pictures appear 3. When it's clicked, the rollover image stays (white box) So in laymans terms... I go to the site, I click on far left link, pictures show. I click on the middle link, diff pictures show i click on the right one, different pictures show. && done Hi, I am creating a site in HTML using Dreamweaver. I use rollover buttons to navigate the site which are normally grey but white when rolled over. I have found that when I press the BACK button the button I had previously clicked is white and not grey. Try it out for yourself: http://www.RandAM.org/RichardAsh/ Once the problematic button is rolled over it works normally. Is there a way to stop this from happening? thanks, R |