Hi. I want my forum title image to rotate everytime be refreshed.
So I tried to put some php code that can rotate images in header, but it doesn't work.
this is what i inserted,
<?php
$random = round( (double)microtime() * 2);
if($random<=0) $random=1;
if($random>2) $random=2;
echo "<img src=images/title/$random.gif height=100 width=230>";
?>
Any idea?
So I tried to put some php code that can rotate images in header, but it doesn't work.
this is what i inserted,
<?php
$random = round( (double)microtime() * 2);
if($random<=0) $random=1;
if($random>2) $random=2;
echo "<img src=images/title/$random.gif height=100 width=230>";
?>
Any idea?
Comment