MariahMan
07-10-2007, 02:05 AM
I have created several different logos for my site that i would like to randomly display on the page. They align to the left of the page and then i have a css background image that just fills in the extra space to the right to accommodate different resolutions as my forum fills the width of the screen. The code in my header that i'm using to display a single static logo to the left with the filler image is this:
<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/moc_logobg.gif)">
<tr>
<td align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/moc_logo_left2.gif" border="0" alt=""/></a></td>
</tr>
</table>
</center>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$welcomeheaders
I tried using this Java Script hack to get the logos to randomize: https://vborg.vbsupport.ru/showthread.php?t=99402
It worked but i can't seem to get my filler to work. I tried putting in the backgrou-image code in different places and ended up with weird results. Any ideas on how i can get my random logos to work? If you have something that will work better than the java script hack i'm using that would also be great. Whatever gets my random logos and filler to work!
Thanks!
Anybody? I just need a way to have the header change but keep the background image so i don't have the gray background just sitting there.
Thanks.
<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/moc_logobg.gif)">
<tr>
<td align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/moc_logo_left2.gif" border="0" alt=""/></a></td>
</tr>
</table>
</center>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$welcomeheaders
I tried using this Java Script hack to get the logos to randomize: https://vborg.vbsupport.ru/showthread.php?t=99402
It worked but i can't seem to get my filler to work. I tried putting in the backgrou-image code in different places and ended up with weird results. Any ideas on how i can get my random logos to work? If you have something that will work better than the java script hack i'm using that would also be great. Whatever gets my random logos and filler to work!
Thanks!
Anybody? I just need a way to have the header change but keep the background image so i don't have the gray background just sitting there.
Thanks.