modifying the original
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
/*********Edit values here for your pictures*******************/
var
pic1='https://store-a32dc.mybigcommerce.com/product_images/uploaded_images/MOMSHOPPING2.gif',
pic2='https://store-a32dc.mybigcommerce.com/product_images/uploaded_images/RRR.gif',
pic3='https://store-a32dc.mybigcommerce.com/product_images/uploaded_images/2photos.jpg';
/***************End of Edit*********************************/
var rangPics=[pic1,pic2,pic3]; // Add all the picture variables in this array.
window.onload=Test;
function Test() {
rangRandom=Math.floor(Math.random()*rangPics.length);
if (this.nu==rangRandom){
setTimeout('Test()',20);
return;
}
document.getElementById('show').innerHTML='<img src="'+rangPics[rangRandom]+'" alt="myimage" style="width:950px;height:450px;">';
setTimeout('Test()',2000);
this.nu=rangRandom;
}
</script>
<div id="show" style="text-align:center;width:950px;border:3px double #222;padding:10px;"></div>
</body>
</html>
Bookmarks