I am helping a friend put together a home page. He wants to be able to mouse over and image and have it change to another image. Basically it will be a before and after shot of some remodeling work he is doing. I have looked around the net a bit and find several examples of “onmouseover” scripts. But none I have found are dedicated to what we would like to do.
To make things even more difficult we want to put the images in a table 2X2 and mouse over each image and have it change. I know there must be some way to do it in java but I just don’t have the smarts.
Oh to add the 2x2 table just cut and paste the code below and wrap your <td></td> tags. You’ll have to then change the name in each IMG and anchor tag.
OK, posted some pages and it works pretty well. However I am noticing some lag on the onmouseoverr image displaying. I’m assuming it is because the image is being loaded at the time of the onmouseover event? Is there a way to have the images loaded ahead of time? Am I asking to much?