Ads |
|
 |
|
Products |
|
 |
|
|
|
 |
 |
 |
|
|
 |
|
|
|
|
Banner Rotator 3
Again remember and change the ads. In this example you can also set the dimensions of your banners.
The how_many_ads variable can be changed if you have more than 3 ads
|
<html>
<head>
<title>bannerload</title>
</head>
<body>
<script LANGUAGE="JavaScript >
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="The World's Banner Design!, your text here";
url="http://www.your text here";
alt="your text here";
banner="http://your graphic.gif";
width="468";
height="60";
}
if (ad==2) {
txt="some useful text in here";
url="http://www.your site.com";
alt="your text here";
banner="http://your graphic.gif";
width="468";
height="60";
}
if (ad==3) {
txt="some useful text in here";
url="http://www.your site.com";
alt="your text here";
banner="http://yourgraphic.gif";
width="460";
height="55";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write(<'img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
</script >
</body>
</html>
|
|
|
|
|
|
|
 |
 |
 |
Products |
|
 |
|
|
Comparison |
|
 |
|
|
Ads |
|
 |
|
|
|