Longturd

Banner Rotator script

Mar 26th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.79 KB | None | 0 0
  1. <script type="text/javascript"><!--
  2.  
  3. mybanners=
  4. [
  5. "<a href=\"http://www.link3.com\" target=\"_blank\"><img src=\"http://image3.gif\" width=\"\" height=\"\" alt=\"\" title=\"\" border=\"0\"></a>",
  6. "<a href=\"http://www.link2.com\" target=\"_blank\"><img src=\"http://image2.gif\" width=\"\" height=\"\" alt=\"\" title=\"\" border=\"0\"></a>",
  7. "<a href=\"http://www.link1.com\" target=\"_blank\"><img src=\"http://image1.gif\" width=\"\" height=\"\" alt=\"\" title=\"\" border=\"0\"></a>"
  8. ]
  9. randomNumber = Math.random()
  10. var show_mybanners = mybanners[Math.floor(randomNumber * mybanners.length)]
  11. document.write(show_mybanners);
  12. // --></script>
  13. <noscript>
  14. <a href="http://www.link1.com" target=\"_blank\"><img src="http://image1.gif" width="" height="" alt="" title="" border="0"></a>
  15. </noscript>
Add Comment
Please, Sign In to add comment