<HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- var iValue, rNumber; var img1 = new Image();img1 = "image/seaside.jpg"; var img2 = new Image();img2 = "image/rivertown.jpg"; var img3 = new Image();img3 = "image/bridge.jpg"; function display_image(){ iValue = Math.random() 3; rNumber = Math.ceil(iValue); if(rNumber == 0){ rNumber++; } document.Img.src = eval("img" + rNumber); } //--> </SCRIPT> </HEAD> <BODY onLoad="display_image()"> <IMG SRC="image/blank.gif" NAME="Img" WIDTH="432" HEIGHT="288"> </BODY> </HTML> |