04-14-2005, 09:08 PM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Apr 2005
Posts: 15
Thanks: 0
|
Tear Me Apart [Banner Rotation]
Hey guys well this is me doing a tear me apart.
I havent been coding long but i got this to work Its pretty simple im not sure what can be changed, If anyone can tell me better ways of coding it and why there better that would help me alot. Sometimes a banner doesnt show up, Can someone tell me why this is aswell?
Code:
<?
srand(time());
$rand = (rand()%4);
switch ($rand)
{
case 1:
echo 'banner 1<img src = "ban1.jpg" width="150" height="150" />';
break;
case 3:
echo 'banner 3<img src = "ban3.jpg" width="150" height="150" />';
break;
case 2:
echo 'banner 2<img src = "ban2.jpg" width="150" height="150" />';
break;
}
?>
Like i said simple of simple im not that good yet, Cab anyone add any good addons to it to make it more interesting?
|
|
|
|