NameSilo

Need Code For Rotating Banners???

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
0
•••
PHPAdsNew is probably a very good script and it's free. Try it out!
 
0
•••
There are also some nice rotating banner scripts, open source, at hotscripts.com

Good luck
 
0
•••
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
•••
Nice one elliothere, but not good if you want to have stats.. :(
 
0
•••
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
•••
Like phpAdsNew as its quite detailed and provides your advertiser with stats.
 
0
•••
^ I suggest MyPHPAds
 
0
•••
Olitt — high-converting AI websites, only from $1/moOlitt — high-converting AI websites, only from $1/mo

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back