View Full Version : pic mouseovers


Jrfan888
01-12-2003, 05:28 PM
Ive tried searching the forum, but i didnt come up with much...but my question is, is there some code that when u put ur mouse over a link, or maybe a pic, and then it changes to a different pic?
Thanks...

co0kied0ugh
01-12-2003, 05:59 PM
Well this is the one for a link mouse over pictures:

<a href="LINK"
onMouseOver="document.image1.src="IMAGEBEFORE.gif"; window.status='type w/e here'; return true"
onMouseOut="document.image1.src="IMAGEAFTER.gif"; window.status='type w/e here'; return true">
<img name="image1" src="IMAGEAFTER.gif" border="0">
</a>

Link is where you want it to go after they click it.
IMAGEBEFORE.gif is the image before they mouse over.
IMAGEAFTER.gif will be the image when they put there mouse over it.
And where it says type w/e here. Just type w/e you want to appear in the status bar when they put there mouse over it.

Hope that helped:)

Jrfan888
01-12-2003, 08:06 PM
the code, but it doesnt work =(
All it does, is stay on the imageafter image. it doesnt change or anything...do u know what might be wrong?

<a href="LINK"
onMouseOver="document.image1.src="ab.bmp"; window.status='Letter A'; return true"
onMouseOut="document.image1.src="go.bmp"; window.status='Letter A'; return true">
<img name="image1" src="go.bmp" border="0">
</a>

co0kied0ugh
01-12-2003, 10:12 PM
Hmmm...I'm not sure, it should be working. Well go to the link below it has another image mouse over code.

http://www.dynamicdrive.com/dynamicindex15/domroll.htm

Jrfan888
01-12-2003, 11:18 PM
that didnt work well either, thanks though....