NameSilo

Need Code For Rotating Banners???

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

SickCars

Established Member
Impact
0
I want to put Rotating Banners at the top of my site, so I can enter as many banners that I want and they will change every time somebody goes to the site. I’m sure you guys/girls know what I’m talking about.

So basically I was wondering what is the code to do this??

Thanks for the help :)
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
PHPAdsNew is probably a very good script and it's free. Try it out!
 
0
Close
There are also some nice rotating banner scripts, open source, at hotscripts.com

Good luck
 
0
Close
This is what I use:

Code:
<?php

        /* all your scripts are contained in this array */
		
$script[0]='
your banner here....
';
$script[1]='
your next banner here....
';

/* continue on like this for as long as you need */

$random = array_rand($script); 
echo($script[$random]);

?>
 
0
Close
Nice one elliothere, but not good if you want to have stats.. :(
 
0
Close
ZuraX said:
Nice one elliothere, but not good if you want to have stats.. :(

True. It's quite a simple script as I really didn't need anything more than that.
 
0
Close
Like phpAdsNew as its quite detailed and provides your advertiser with stats.
 
0
Close
^ I suggest MyPHPAds
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back