Mouse-over effects - Java-script in an HTML-page

The code to use:

To use an image as a link, so that it appears to change its form as the visitor

the image-element which is to change has a name - here it's "pickie" - which comes as an attribute of the image which is first shown:

<A HREF="index.htm"

onmouseover="document.pickie.src='image2.jpg';"
onmouseout="document.pickie.src='image3.jpg';"
onmousedown="document.pickie.src='image4.jpg';">

<IMG SRC="image1.jpg" WIDTH=x HEIGHT=y BORDER=z ALIGN=bottom name="pickie"></A>

(x, y, z are to be replaced with the appropriate numbers)


For more details see, e.g. http://sites.netscape.net/heidipollock/mouseover.html

BACK

 

webweaver
david@ibs.ee

web-site
The New
Renaissance