Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>Moon</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers firstTime = true function slide() { if (firstTime) { if (document.all) { rightDotPos = document.all.rightfore.style.pixelLeft } else { rightDotPos = document.rightfore.left } firstTime = false } if (document.all) { document.all.mover.style.pixelLeft += 2 currPos = document.all.mover.style.pixelLeft } else { document.mover.left += 2 currPos = document.mover.left } if (currPos < rightDotPos) { setTimeout("slide()",20) } } // End hiding script --> </SCRIPT> <STYLE TYPE="TEXT/CSS"> #leftfore {position: absolute; left: 0; top: 5; z-Index: 2} #mover {position: absolute; left: 5; top: 5; z-Index: 1} #rightfore {position: absolute; left: 470; top: 5; z-Index: 2} </STYLE> </HEAD> <BODY BGCOLOR=BLACK onLoad="slide()"> <DIV ID="leftfore"> <IMG SRC="images/black_dot.gif" WIDTH=250 HEIGHT=250> </DIV> <DIV ID="mover"> <IMG SRC="images/full_moon.jpg" WIDTH=232 HEIGHT=232> </DIV> <DIV ID="rightfore"> <IMG SRC="images/black_dot.gif" WIDTH=250 HEIGHT=250> </DIV> </BODY> </HTML>