minulescu
12-04-2002, 12:57 PM
I'm new to jave. If anyone can spare a script that would do rollover images..id apreciate it.
Thanks
Thanks
|
Click to See Complete Forum and Search --> : OnMouseOut minulescu 12-04-2002, 12:57 PM I'm new to jave. If anyone can spare a script that would do rollover images..id apreciate it. Thanks Zach Elfers 12-04-2002, 01:38 PM <script language="JavaScript" type="text/JavaScript"> // This preloads the images img1 = new Image(width, height); img1.src = "img.ext"; // repeat that for each image you want img2 = new Image(width, height); img2.src = "img.ext"; </script> In the image tag: <a onMouseOver="document.img2.src;" onMouseOut="document.img1.src;"><img src="img.ext" name="img1"></a> That will give you a simple rollover.:) minulescu 12-05-2002, 01:43 AM thanks a lot... but i cant get it to work. i dunno why. I've tried puting the script in both the head and the body, no change. Can you gimme a hand? Here's the link to the page. Below the rollover img. thing i put the two pictures that i want to roll, so, I know there's nothing wrong with the pictures. Thanks http://www27.brinkster.com/minulescu/project webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |