Advertisement
tommy351

Random picture

Mar 22nd, 2012
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var imgnumber = Math.floor(Math.random()*3);
  2. var imgurl = ['http://www.aaa.com/aaa.jpg', 'http://www.bbb.com/bbb.jpg', 'http://www.ccc.com/ccc.jpg'];
  3. document.write('<img src="'+imgurl[imgnumber]+'">');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement