Back to Scripts page
Click in the text area below, select all and copy to grab the script
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>A Complex Rollover</title> <script language="Javascript" type="text/javascript"> <!-- Hide script from old browsers if (document.images) { flyText = new Image tankText = new Image bgText = new Image heliText = new Image flyText.src = "images/fmText.gif" tankText.src = "images/tankText.gif" bgText.src = "images/bg.gif" heliText.src = "images/heliText.gif" } function chgImg(imgField,newImg) { if (document.images) { document[imgField].src= eval(newImg + ".src") } } // End hiding script from old browsers --> </script> </head> <body bgcolor="#EECC99"> <table> <tr valign="top"> <td> <img src="images/leoText.gif" width="375" height="26" alt="Leonardo's Inventions" /><br /> <a href="flyPage.html" onmouseover="chgImg('textField','flyText')" onmouseout="chgImg('textField','bgText')"><img src="images/flyer.gif" width="293" height="165" border="0" vspace="20" alt="Flying Machine" /></a><br /> <a href="tankPage.html" onmouseover="chgImg('textField','tankText')" onmouseout="chgImg('textField','bgText')"><img src="images/tanks.gif" width="325" height="92" border="0" alt="Tank" /></a><br /> <a href="heliPage.html" onmouseover="chgImg('textField','heliText')" onmouseout="chgImg('textField','bgText')"><img src="images/helicopter.gif" width="224" height="160" border="0" vspace="20" alt="Helicopter" /></a> </td> <td> <img src="images/DaVinci.jpg" width="144" height="219" hspace="50"alt="DaVinci" /><br /> <img src="images/bg.gif" width="208" height="27" name="textField" vspace="20" alt="Text Field" /> </td> </tr> </table> </body> </html>
Images:
(Some scripts do not have associated images)