View Single Post
Old 07-29-2007, 11:30 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,386
Strange question. Is it a problem to write a couple of PHP or JavaScript lines that will implement a banner rotation algorithm?

e.g.:
PHP Code:
<?php
$banners 
file("banners.txt");
srand ((float) microtime() * 10000000);
shuffle($banners);
$parts explode("|"$banners[0]);
echo 
'<a href="'.$parts[1].'"><img src="'.$parts[0].'"></a>';
?>
There should be a "banners.txt" file which must contain the links to banners and paysites in the following format:
{path to banner 1}|{url 1}
{path to banner 2}|{url 2}
etc..

e.g.:
thumbs/banner1.jpg|http://www.sponsorsite1.com
thumbs/banner2.gif|http://www.sponsorsite2.com/
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote