var img_name = new Array("purple.gif", "red.gif",
"blue.gif", "yellow.gif", "green.gif", "pink.gif");
var l = img_name.length;
var rnd_no = Math.floor(l*Math.random());
document.r_img.src = img_name[rnd_no];
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
We love to hear from you! Leave us a comment.