Randomize Your Button Friends

Got alot of friends you link to? Want to randomize their small buttons? You can randomize anything really with this script. Check it out… Have some fun!

Code:
<?
 $Buttons = 5; // # of button to show
 $Img[] = "<a href='http://www.friend1.com'><IMG src='images/1.gif'></a>";
 $Img[] = "<a href='http://www.friend2.com'><IMG src='images/2.gif'></a>";
 $Img[] = "<a href='http://www.friend3.com'><IMG src='images/3.gif'></a>";
 //over and over like that ^^

 srand ((float) microtime() * 10000000);
 $Keys = array_rand($Img, 5);

 for($K = 0; $K < $Buttons; $K++){
 echo "".$Img[$Keys[$K]]." <br> ";
 }

 ?>

There you have it, everything inside the ” and ” for the $Img =…. will be what is random, it can be text, images, links.

Then, the $Button = 5; the 5 is how much of those random things are going to be shown.

m121ban2





mp

Star Resell Our Services As Your Own
Basic Reseller
Pro Reseller
Reseller Login

register domain names
Domain Sales
.com $8.99 (Now-Sept)

dotme
NEW .ME
There’s a story inside each one of us, waiting to be told. Tell yours to the world with .ME -- the Top Level Domain that’s all about you!