Advertisement
hxcfairy

random image script

Dec 24th, 2011
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <script language="JavaScript">
  2. <!--
  3.  
  4. /*
  5. Random Image Script- By JavaScript Kit (http://www.javascriptkit.com)
  6. Over 400+ free JavaScripts here!
  7. Keep this notice intact please
  8. */
  9.  
  10. function random_imglink(){
  11. var myimages=new Array()
  12. //specify random images below. You can have as many as you wish
  13. myimages[1]="http://f.cl.ly/items/2F0N3836182U0m431142/393.gif"
  14. myimages[2]="http://f.cl.ly/items/2F0N3836182U0m431142/421.gif"
  15. myimages[3]="http://f.cl.ly/items/2F0N3836182U0m431142/007.gif"
  16.  
  17. var ry=Math.floor(Math.random()*myimages.length)
  18. if (ry==0)
  19. ry=1
  20. document.write('<img src="'+myimages[ry]+'" width=250px border=0>')
  21. }
  22. random_imglink()
  23. //-->
  24. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement