1. Add the first code to the body of your document
| <SCRIPT LANGUAGE="JavaScript"> <!-- Begin 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 Largest Online Bookstore, Amazon.com"; url="http://www.amazon.com"; alt="amazon.com"; banner="http://imageserv.imgis.com/images/Ad12669St1Sz1Sq1_Ban1.gif"; width="468"; height="60"; } if (ad==2) { txt="StupidKid.Net Greatest Site Ever"; url="http://www.stupidkid.net/"; alt="stupidkid.net"; banner="http://img.photobucket.com/albums/v370/danker2/stupidkid.gif"; width="468"; height="60"; } if (ad==3) { txt="Find it at GoTo.com"; url="http://www.goto.com"; alt="goto.com"; banner="http://imageserv.imgis.com/images/Ad13700St1Sz1Sq1_Ban1.gif"; width="468"; height="60"; } 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>'); // End --> </SCRIPT> |
Thats it, just edit these
| if (ad==2) { txt="StupidKid.Net Greatest Site Ever"; url="http://www.stupidkid.net/"; alt="stupidkid.net"; banner="http://img.photobucket.com/albums/v370/danker2/stupidkid.gif"; width="468"; height="60"; |
with your info.
Related Articles
- A great banner only needs simple thingsTo create your own great banner, you only need five (5) simple things:
1. Size according to standards. Always keep to the standards. Having a bold, huge banner would look good and attract more attention than any graphic design ever would... - Tips to Create Banners that Make People Rush to Your WebsiteThis short article gives you good advice for designing and using banners. The article discusses motion, color, placement, and wording among other considerations.
- How To Triple Your Banner Click-Through-RatesHave you noticed that your banner ads rarely get clicked on? Banner ads used to be a very effective method of advertising, but the web has become bloated with banner after banner. As a result theyre largely ignored today. But did you know there is a simple and effective way to get people to ....
- Banner Rotation and PHP IncludeWith this script you can add a banner rotation to your site, the base code is:
- Banner Rotation Using PHPCreating a simple ad-rotator, the ads are stored in a text file and picked randomly by this PHP code. Most of the webmaster use banner ads, we will be creating a very simple banner rotator, which picks up randomly one ad from the banner file and displays it, this file can be called in any other page...
- Banner AdsAdd the first code to the body of your document
- Website Design with Slideshows and Banners!Website design is perhaps the most important aspect of a website. A well designed website plays a key role in the growth of your business and boosts your online presence. To add on to the intricacies of your website design, you could make use of online website builder softwares that have good featur...
- Random ImagesEver wanted to make links, or banners appear on your site in a random order? Well heres a simple script that will do just that.
- Banner AdvertisingEveryone is using them now and if youre planning on creating your own banner ad then there are some things that you should know.
- Banner Rotation ScriptStep1: Opening the Javascript tags and setting the variables/size of the images you are going to display:
The width and heights are recognised as pixels, I have set the default size of most of the banners.
