QueenOfGeckos

rando im

Dec 8th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. /*
  2. Random Image Script- By JavaScript Kit (http://www.javascriptkit.com)
  3. Over 400+ free JavaScripts here!
  4. Keep this notice intact please
  5. */
  6.  
  7. function random_imglink(){
  8. var myimages=new Array()
  9. //specify random images below. You can have as many as you wish
  10. myimages[1]="zzzz"
  11. myimages[2]="yyyy"
  12. myimages[3]="xxxx"
  13. myimages[4]="cccc"
  14. myimages[5]="tttt"
  15. myimages[6]="ssss"
  16. myimages[7]="AAA"
  17. myimages[8]="bbbb"
  18. myimages[9]="ddd"
  19. myimages[10]="ddddg"
  20. var ry=Math.floor(Math.random()*myimages.length)
  21. if (ry==0)
  22. ry=1
  23. document.write('<img src="'+myimages[ry]+'" border=0 class="sidepic" style="right:0;">')
  24. }
  25. random_imglink()
  26. //-->
  27.  
  28. .sidepic { position:fixed; max-height:400px; width:auto; bottom:0; }
  29.  
  30. <div class="sidepic">
Add Comment
Please, Sign In to add comment