How To Create Random 468x 60 AD Banners Widget ?


SUBMITTED BY: Guest

DATE: Oct. 13, 2016, 9:16 a.m.

FORMAT: Java

SIZE: 660 Bytes

HITS: 416

  1. <script language="JavaScript">
  2. images = new Array(3);
  3. images[0] = "<a href = ' URL OF
  4. ADVERTISER ' rel='nofollow' ><img
  5. src='URL OF BANNER’S IMAGE-1 '
  6. border='0' height='60px' width='468px'
  7. alt=' AD DESCRIPTION'></a>";
  8. images[1] = "<a href = ' URL OF
  9. ADVERTISER ' rel='nofollow' ><img
  10. src='URL OF BANNER’S IMAGE-2 '
  11. border='0' height='60px' width='468px'
  12. alt=' AD DESCRIPTION'></a>";
  13. images[2] = "<a href = ' URL OF
  14. ADVERTISER ' rel='nofollow' ><img
  15. src='URL OF BANNER’S IMAGE-3 '
  16. border='0' height='60px' width='468px'
  17. alt=' AD DESCRIPTION'></a>";
  18. index = Math.floor(Math.random() *
  19. images.length);
  20. document.write(images[index]);
  21. </script>

comments powered by Disqus