Random Banner Ad Rotator - JavaScript Code


It is not necessary to refresh the page. When the page is loaded a random banner ads and link are generated. The script allows you to automatically change the three random ads on your pages. It will change your website banner image with link every time your visitors visit your site.

Don't let your visitors feel boring when they visit your website. Not only using this script for banner ads rotator, you can also use it to display interesting images that will enhance your site quality.

Script Demo:




Demo


JavaScript Code:


Insert this code into <head> tags


Insert this code into <body> tags


Instruction:


Change the following:

  1. imageA.gif, imageB.gif, imageC.gif to your banner image URL.
  2. urlA.html, urlB.html ,urlC.html to the target URL.
  3. NameA, NameB, NameC to your Website name/title.

About the sizes of the banner, modify all the values 120(width) and 60(height). Do not change the other part, unless you know what you are doing, or the script may not work.

Replace the tags <body> with <body onLoad="randadd0()">.

Webmaster » Web Programming » JavaScript » Banner » Ad Rotator - Random Banner Code


 Related Links:

Home | Sitemap | Bookmark This Page
Sponsored Links