|
<Html>
<Head>
<title>Random Images</title>
<script language=javascript>
<!-- Hide script from old browsers
var oldPic = new Array ("image.gif, newimage.gif")
function selectPic () {
if (document.images)
{ randomNum= Math.floor ((Math.random() * 10)) % 2
document.myPicture.src=oldPic[randomNum] } }
// end hiding script from old
browsers -->
</script>
<Body bgcolor=white onload="selectPic()">
<img src="blank.gif" width="117" height="70"
name="myPicture">
Click on "Refresh" several times to see the effect.
</body>
</html>
Click here
to see it in action.
|