Return to Snippet

Revision: 4944
at January 30, 2008 03:49 by HenLen


Initial Code
<?$arr = array(
 		0 => "<p>Fill with your html for the first banner</p>",
 		1 => "<p>Fill with your html for the 2nd banner</p>",
 		2 => "<p>Fill with your html for the 3rd banner</p>"
 );

// Don´t touch
// Print insertet banner-HTML
shuffle($arr);
foreach($arr as $banner => $value)
{
	print $value;	
}

// Thats it!

Initial URL
http://www.shopbetreiber-blog.de

Initial Description
You have banners on your page for advertising? Then you have to randomize the order to be fair.

Initial Title
Randomize your banner ads

Initial Tags
php

Initial Language
PHP