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