|
hello,
i use a simple code below to choose a random image for my site header:
<script language="javascript" type="text/javascript">
p=65*Math.random();
d=parseInt(p);
document.write ("<img src ='L:/webroot/pics/"+d+".jpg'>");
</script>
there are 65 images in the folder, starting from 0.
all is working pretty wel, but - sometimes it gives a blank result, not the image.
can You please help?
thx
|