Click to See Complete Forum and Search --> : Image Rollover


jordanj
09-30-2003, 03:04 PM
Hello,

I was wondering if there is a script available for the following:

I would like to create an image rollover so that when I mouse over an image, an new image would appear, but it wouldn't appear right over the base image. I would actually like for the new image to appear below the base image.

Any help would be greatly appreciated.

Thank You;

Jeremy

Jona
09-30-2003, 03:34 PM
<img src="file1.jpg" name="file1" onMouseOver="document.images['file2'].src='file2.jpg';" alt="File 1">

<img src="file1.jpg" name="file2" alt="File 2">


[J]ona

jordanj
10-01-2003, 08:14 AM
Jona,

Thank you for providing the code for the rollover.
I tried the script, but I don't think I did it
right. I'm not that great at JavaScript.

Do you have an online example I could look at
as a reference.

Thanks Again!

Jeremy

Jona
10-01-2003, 11:55 AM
Not exactly, but all you had to do with the code I posted is change the SRC's to the values of the images (every occurence of file1.jpg turn to whatever your image is, with its extension, and the same applies for file2.jpg).

[J]on[a]