PDA

View Full Version : Header tables causing problems...


Steve W.
05-29-2003, 07:58 AM
Have a look at http://rockpop.goldenpie.com/forums/showthread.php?threadid=24 and you'll notice that the content of the thread is placed underneath the table defined in the header. On all other pages, the page content goes inside this table, but for threadshow, it goes outside, cause a horrid mess! I don't know if it has something to do with it trying to redefine the start of the table?

Can any shed some light on this please?

Tony G
05-29-2003, 09:42 AM
Can't do much without some code to see. What templates did you edit to achieve that side thing? Header & Footer?

Steve W.
05-29-2003, 09:48 AM
Yeah, I started the code in the header and closed it in the footer...

<!-- logo and buttons -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('{imagesfolder}/head_1_on.jpg','{imagesfolder}/head_2_on.jpg','{imagesfolder}/head_5_on.jpg','{imagesfolder}/head_9_on.jpg','{imagesfolder}/head_10_on.jpg','{imagesfolder}/head_3_on.jpg','{imagesfolder}/head_6_on.jpg','{imagesfolder}/head_7_on.jpg','{imagesfolder}/head_8_on.jpg','{imagesfolder}/head_4_on.jpg')">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="770" align="left"><smallfont><img src="{imagesfolder}/header_logo.jpg" width="423" height="48"></smallfont></td>
<td width="100%" align="center" background="{imagesfolder}/header_title_fill.gif"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="33" align="left" background="{imagesfolder}/header_menu_bg.gif"><font face="Verdana, Arial, Helvetica, sans-serif"><smallfont><a href="index.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('usercp','','{imagesfolder}/head_1_on.jpg',1)"><img src="{imagesfolder}/head_1_off.jpg" alt="User CP" name="usercp" width="76" height="33" border="0"></a><a href="register.php?s=$session[sessionhash]&action=signup" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('register','','{imagesfolder}/head_2_on.jpg',1)"><img src="{imagesfolder}/head_2_off.jpg" alt="Register" name="register" width="85" height="33" border="0"></a><a href="calendar.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('calender','','{imagesfolder}/head_5_on.jpg',1)"><img src="{imagesfolder}/head_5_off.jpg" alt="Calender" name="calender" width="93" height="33" border="0"></a><a href="memberlist.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('members','','{imagesfolder}/head_9_on.jpg',1)"><img src="{imagesfolder}/head_9_off.jpg" alt="Members" name="members" width="91" height="33" border="0"></a><a href="links.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links','','{imagesfolder}/head_10_on.jpg',1)"><img src="{imagesfolder}/head_10_off.jpg" alt="Links" name="links" width="57" height="33" border="0"></a><a href="features.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('features','','{imagesfolder}/head_3_on.jpg',1)"><img src="{imagesfolder}/head_3_off.jpg" alt="Features" name="features" width="90" height="33" border="0"></a><a href="misc.php?s=$session[sessionhash]&action=faq" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('faq','','{imagesfolder}/head_6_on.jpg',1)"><img src="{imagesfolder}/head_6_off.jpg" alt="FAQ" name="faq" width="44" height="33" border="0"></a><a href="search.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('search','','{imagesfolder}/head_7_on.jpg',1)"><img src="{imagesfolder}/head_7_off.jpg" alt="Search" name="search" width="74" height="33" border="0"></a><a href="member.php?s=$session[sessionhash]&action=logout" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('logout','','{imagesfolder}/head_8_on.jpg',1)"><img src="{imagesfolder}/head_8_off.jpg" alt="Logout" name="logout" width="73" height="33" border="0"></a><a href="index.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','{imagesfolder}/head_4_on.jpg',1)"><img src="{imagesfolder}/head_4_off.jpg" alt="Head" name="home" width="60" height="33" border="0"></a></smallfont></font></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="770" align="left"><smallfont><img src="{imagesfolder}/header_regular.jpg" width="660" height="38"></smallfont></td>
<td width="100%" align="center" background="{imagesfolder}/wrap_header.gif"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="208" align="left" valign="top" background="{imagesfolder}/wrap_side.gif"><smallfont><img src="{imagesfolder}/side_regular.jpg" width="208" height="403"></smallfont></td>
<td width="100%" align="center" bgcolor="#F4F2F2">

And it's closed in the footer with...

</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="208" align="left" valign="top" background="{imagesfolder}/wrap_side.gif"><smallfont><img src="{imagesfolder}/wrap_side.gif" width="208" height="38"></smallfont></td>
<td width="100%" align="center" valign="top" bgcolor="#F4F2F2">
<!-- CONTENT TABLE END -->
<!-- /content area table -->
<normalfont></normalfont>
<p align="center"><smallfont>
<!-- Do not remove this copyright notice -->
Powered by: vBulletin Version $templateversion<br>
Copyright &copy;2000 - 2002, Jelsoft Enterprises Limited.<br>
<b> <a href="$contactuslink">Contact Us</a> - <a href="$homeurl">$hometitle</a>
<!-- - <a href="$privacyurl">Privacy Statement</a> -->
</b><br>
<!-- Do not remove this copyright notice -->
$copyrighttext </smallfont></p>
<p align="center"><smallfont></smallfont></p></td>
</tr>
</table>
</center>