| free hosting image hosting hosting reseller online album e-shop famous people | ||
![]() ![]() |
||
And paste this into the body of your page:
default1 = new Image(); default1.src = "normal.gif"where:
changed1 = new Image(); changed1.src = "over.gif"
Relative or absolute URLs may be used here, depending on where the images are stored.default1 is the normal image
changed1 is the image on mouseover
var pSrc=eval(p+ ".src");Finally, this value is written to the page using:
document[iName].src = pSrc;In the example used below, this would translate to:
Thus, if numerous rollovers are used, the value of iName will change accordingly.document[image1].src = over.gif (on mouseover)
document[image1].src = normal.gif (on mouseout)
default1 = new Image(); default1.src = "normal1.gif"And inside the img tag of each link, give the graphic a unique name:
default2 = new Image(); default2.src = "normal2.gif"
default3 = new Image(); default3.src = "normal3.gif"
changed1 = new Image(); changed1.src = "over1.gif"
changed2 = new Image(); changed2.src = "over2.gif"
changed3 = new Image(); changed31.src = "over3.gif"
NAME="image1"For best results, the mouseover graphic should be the same size as the original.
NAME="image2"
NAME="image3"