Slideshow Banner Ads - JavaScript Code


This script randomly starts the banner rotation. The first banner is loaded and is immediately changed once the page loads. Each one image will have its own link. To not have the first banner load all the time, you can create a transparent image the same size as the other banners and put it in the IMG tag.

In addition to display advertising banners, it also can be used to slideshow your favorite photos and images.

Script Demo:




Demo


JavaScript Code:


Insert this code into <head> tags


Insert this code into <body> tags


Instruction:


Code in <head></head>:
  1. Change the image A,B,C to your banner ads image address.
  2. Change the description 1,2,3 to the text will be show on the link.
  3. Change the urlA,B,C to target URL.
Code in <body></body>:
  1. Replace tags <body> with <body onLoad="randombanner();startTime();">
  2. Change banner.gif to your first banner to display.
  3. Insert other code into the webpage where you want to slideshow your banner.
Webmaster » Web Programming » JavaScript » Banner » Slideshow Ads


 Related Links:

Home | Sitemap | Bookmark This Page
Sponsored Links