Forum Moderators: open

Message Too Old, No Replies

Need a mouseover for multiple images.

Do NOT want the images defined in the <head> script.

         

theadvocate

12:44 pm on Feb 8, 2004 (gmt 0)

10+ Year Member



I am trying to find a simple mouseover script that works in most browsers, supports multiple images, and does not require you to define the images in the initial script.

I have found many scripts, but they all define the images in the top script.

I have too many images for that. I need a script that allows you to define the image in the body.

Thanks!

DrDoc

11:14 pm on Feb 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<script type="text/javascript">
function replaceme(which,img) {
which.src = img;
}
function restoreme(which,img) {
which.src = img;
}
</script>

<img src="http://www.google.com/images/logo.gif" onmouseover="replaceme(this,'http://av.com/static/i/2/av3.gif')" onmouseout="restoreme(this,'http://www.google.com/images/logo.gif')">

theadvocate

12:26 pm on Feb 9, 2004 (gmt 0)

10+ Year Member



Thanks DrDoc,

You have been a great deal of help the past few days and it is greatly appreciated!

theadvocate

1:24 pm on Feb 11, 2004 (gmt 0)

10+ Year Member



Got it...