Hi, i own Phpld Owners (www.phpldowners.com) and i change the skin into a more clean one. I want to put a banner rotation script at the top but i couldnt find any good one. I want a script/code to put three 468x60 banners (i currently have one 468x60 and two 120x60) at the main page. Thanks, fuser
You want it show one 468x60 banner that rotates? I'm not sure how advanced you're after but if you just want it to pick a random banner and display it: <?php $banners = array( 'http://www.urlforbannertarget.com/blah.php?in=34' => 'http://location.of/image.gif', 'http://urlforbannertarget.com/rah.php?in=85' => 'http://location.of/image2.gif', ); $url = array_rand($banners); $image = $banners[$url]; echo <<<HTML <a href="{$url}"><img src="{$image}" border="0" /></a> HTML; ?> PHP: Or is that not what you meant?
Simple banner rotation script It uses cookies to show banners 1,2,3,4 ... etc ... very simple and effective