<HTML> <HEAD> <TITLE>Animated Butterfly</TITLE> <SCRIPT LANGUAGE=JavaScript TYPE="text/javascript"> <!-- Hide script from older browsers var firstTime = true function moveIt() { if (firstTime) { if (document.all) { moveImg = mover.style moveImg.top = 5 moveImg.left = 5 winHeight = 480 winWidth = 640 } else { moveImg = document.mover winHeight = window.innerHeight winWidth = window.innerWidth } firstTime = false } chgXBy = Math.floor((Math.random() * 10)) if ((Math.random() < .5 || moveImg.top >= (winHeight-40)) && parseInt(moveImg.top) > 5) moveImg.top=parseInt(moveImg.top) - chgXBy else moveImg.top=parseInt(moveImg.top) + chgXBy chgYBy = Math.floor((Math.random() * 10)) if ((Math.random() < .5 || moveImg.left >= (winWidth-40)) && parseInt(moveImg.left) > 5) moveImg.left=parseInt(moveImg.left) - chgYBy else moveImg.left=parseInt(moveImg.left) + chgYBy setTimeout("moveIt()",30) } // End hiding script --> </SCRIPT> <STYLE TYPE="text/css"> #mover {position: absolute; left: 5; top: 5;} </STYLE> </HEAD> <BODY BGCOLOR=WHITE onLoad="moveIt()"> <DIV ID="mover"><IMG SRC="images/butterfly.gif" WIDTH="32" HEIGHT="32" ALT="butterfly"></DIV> </BODY> </HTML>