i have JavaScript for refreshing images randomly.....
Code:
<head>
<style type="text/css">
div#container {
width:320px; margin-left:10px; margin-top:5px;}
img#random {
width:320px;
height:150px;
}
</style>
<script type="text/javascript">
//<![CDATA[
var images=new Array();
images[0]="images/1.jpg";
images[1]="images/2.jpg";
images[2]="images/3.jpg";
images[3]="images/4.jpg";
images[4]="images/5.jpg";
images[5]="images/6.jpg";
function randomImage() {
var i=Math.floor(Math.random()*images.length);
document.getElementById("customerreviews").src=images[i];
}
onload=randomImage;
//]]>
</script>
</head>
<body>
<div id="container"><img id="random" src="" alt=""/></div>
</body>
i try replacing images with text but its not working.....
Bookmarks