Advertisement
FireMageLynn

Untitled

Jan 15th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.51 KB | None | 0 0
  1. <img src="" id="headerImage">
  2. <script>
  3. function random_imglink()
  4. {
  5.     var myimages=[];
  6.     //specify random images below. You can have as many as you wish
  7.     myimages[1]="http://i.imgur.com/NMeu6Yh.png";
  8.     myimages[2]="http://i.imgur.com/vtg0H0E.png";
  9.     myimages[3]="http://i.imgur.com/bpYYdZN.png";
  10.    
  11.     var img=0;
  12.     while (img===0)
  13.     {
  14.         img = Math.floor(Math.random()*myimages.length);
  15.     }
  16.     document.getElementById("headerImage").src=myimages[img];
  17. }
  18. random_imglink();  
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement