Nov 5, 2010

Javascript: Image chage when mouse over it

(html)
(script languages="JavaScript")
(!--
var img3 = new Image();
var img2 = new Image();
var img1 = new Image();
img1.src = "http://www.britannica.com/psychedelic/images/opsyroc148p1.jpg";
img2.src = "http://www.drummerworld.com/pics/drum/dpa48/CarlPalmer.jpg";
img3.src = "http://img.listal.com/image/863296/500full.jpg";
//--)
(/script)
(body)



(a href="INSERT LINK TO KEITH EMERSON PAGE" onMouseOver="document.firstI.src=img2.src" onMouseOut="document.firstI.src=img1.src")(img src="http://www.britannica.com/psychedelic/images/opsyroc148p1.jpg" name="firstI" alt="Keith Emerson" width="200" height="200" /)(/a)

(a href="INSERT LINK TO CARL PALMER PAGE" onMouseOver="document.secondI.src=img3.src" onMouseOut="document.secondI.src=img2.src")(img src="http://www.drummerworld.com/pics/drum/dpa48/CarlPalmer.jpg" name="secondI" alt="Carl Palmer" width="200" height="200" /)(/a)

(a href="INSERT LINK TO Greg Lake PAGE" onMouseOver="document.thirdI.src=img1.src" onMouseOut="document.thirdI.src=img3.src")(img src="http://img.listal.com/image/863296/500full.jpg" name="thirdI" alt="Greg Lake" width="200" height="200" /)(/a)
(/body)
(/html)

No comments:

Down with the Dictatorship!

    "Let them hate me, so that they fear me" - Caligula 41AD