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