Hi khoshru
try the following code, hope it helps
<html><head>
<script language="javascript">
today=new Date();
jran=today.getTime();
function rnd() {
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
return jran/(im*1.0);
};
function rand(number) {
return Math.ceil(rnd()*number);
};
document.write("<center>");
for(i=1;i<=1;i++) {
myNum=(rand(3));if(myNum == 1) document.write("<img src='http://static.asp.net/asp.net/images/books/book170.jpg'>");
if(myNum == 2) document.write("<img src='http://static.asp.net/asp.net/images/books/book179.jpg'>");
if(myNum == 3) document.write("<img src='http://static.asp.net/asp.net/images/books/book171.jpg'>");
else {
document.write();
}
};
document.write("</center>");
</script>
<title>OK</title></head>
<body>
</body>
</html>