Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: Banner rotation code?

[bsa_pro_ad_space id=2]
#718618
Anonymous
Inactive

// Start banner code

$codes = array(
“,
“,
“,
);
srand ((float) microtime()*1000000);
shuffle($codes);
$i=0;
$number=1; while(list(, $code) = each($codes)) {
if ($i>=$number) { break; }

echo “

$header_content $code

“;
echo ““;
$i++;
}
// End banner code
[/CODE]

The above is what I use to rotate three header banners. You can add all the banners you want.

Hope this helps.[CODE]

// Start banner code

$codes = array(
“,
“,
“,
);
srand ((float) microtime()*1000000);
shuffle($codes);
$i=0;
$number=1; while(list(, $code) = each($codes)) {
if ($i>=$number) { break; }

echo “

$header_content $code

“;
echo ““;
$i++;
}
// End banner code
[/CODE]

The above is what I use to rotate three header banners. You can add all the banners you want.

Hope this helps.