Would it be hard to add in a variable that would rotate them without refreshing the page?
Maybe something similar to this?
<?php // DynAds: Display an ad per period
$StartDate = "15 January 2004" ;
$PeriodHours = 24 ;
$AdGroup = "NameOfTheAdGroup" ;
$DispPosName = "NameForThisAdDisplayPosition" ;
$ScriptUrl = "http://YourDomain/DynAdsInstallPath/ad.pl" ;
// No editing beyond this line
$PerCount = (int)((time() - strtotime($StartDate)) / ($PeriodHours*60*60)) ;
$url = $ScriptUrl . "?pos=" . urlencode($DispPosName) . "&agn=" . urlencode($AdGroup) . "&dsp=html&sel=seq&ano=" . $PerCount ;
@include($url) ;
?>
<<<<gets ready to duck and run
$ScriptUrl = "http://YourDomain/DynAdsInstallPath/ad.pl" ;
could be taken out and replaced with banners.inc.php (I think)
maybe like so
<?php // DynAds: Display an ad per period
$StartDate = "15 January 2004" ;
$PeriodHours = 24 ;
$AdGroup = "Test" ;
$DispPosName = "Test" ;
$ScriptUrl = "http://emeraldforestseattle.nuclearfallout.net/ubbthreadss/includes/banners.inc.php" ;
// No editing beyond this line
$PerCount = (int)((time() - strtotime($StartDate)) / ($PeriodHours*1*1)) ;
$url = $ScriptUrl . "?pos=" . urlencode($DispPosName) . "&agn=" . urlencode($AdGroup) . "&dsp=html&sel=seq&ano=" . $PerCount ;
@include($url) ;
?>
and it would rotate every minute
or is this over killl and I should just use Meta Refresh?
Last edited by ChAoS; 10/26/2004 1:15 PM.