iulianh
01-17-2008, 04:27 PM
Ok , i have tryed the tutorials i have found here on how to make my header rotate but they didn`t work . On my website i have an php script that rotates my headers, i have 6 .
The code is :
<?php
$total = "6";
$file_type = ".jpg";
$image_folder = "images/headers";
$start = "1";
$random = mt_rand($start, $total);
$image_name = $random . $file_type;
echo "<td background=\"$image_folder/$image_name\" /></td>";
?>
and my header code is :
<TABLE bgcolor="#eeeeee" width="702" height="228" align="center" cellpadding="0" cellspacing="0" style="border-left: 3px #707070 solid; border-right: 3px #707070 solid;">
<TR>
<?php include('random-header.php'); ?>
</TR>
</TABLE>
How can i add my script to the forums ? Need some quick help please . Go to www.tiestofans.com to see what i am talking about .
Thanks in advance ,
Iulian
The code is :
<?php
$total = "6";
$file_type = ".jpg";
$image_folder = "images/headers";
$start = "1";
$random = mt_rand($start, $total);
$image_name = $random . $file_type;
echo "<td background=\"$image_folder/$image_name\" /></td>";
?>
and my header code is :
<TABLE bgcolor="#eeeeee" width="702" height="228" align="center" cellpadding="0" cellspacing="0" style="border-left: 3px #707070 solid; border-right: 3px #707070 solid;">
<TR>
<?php include('random-header.php'); ?>
</TR>
</TABLE>
How can i add my script to the forums ? Need some quick help please . Go to www.tiestofans.com to see what i am talking about .
Thanks in advance ,
Iulian