PDA

View Full Version : What's wrong with this template?


likegluelikecrew
10-12-2005, 08:09 PM
Ok, I'm under the gun to get this done. I created a template from a sliced up html page that I did in ImageReady, then attached the style sheet to it (the style sheet works, I checked it on test pages). When I base a page off this template, the size and line height don't work from the styles. The margins, font color, etc. work, except for these attributes. I've tried everything! I did a different simple template, applied the same style sheet, based a page off of it and it worked fine. WHAT'S WRONG WITH THIS THING! I'm pulling my hair out over here!

Code for template...

<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<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>
<link href="../main.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../images/header/home_ro.gif','../images/header/products_ro.gif','../images/header/lifestyles_ro.gif','../images/header/demos_ro.gif','../images/header/support_ro.gif','../images/header/pressroom_ro.gif','../images/header/company_ro.gif')">
<!-- ImageReady Slices (webgraphics3.psd) -->
<table width="760" height="338" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="13">
../images/header/headertop.gif</td>
</tr>
<tr>
<td>
../images/header/headerleft.gif</td>
<td colspan="5">
../images/header/rqcolor.gif (../default.asp)</td>
<td colspan="6">
../images/header/headerblack.gif</td>
<td>
../images/header/headerright.gif</td>
</tr>
<tr>
<td colspan="13">
../images/header/headerbottom.gif</td>
</tr>
<tr>
<td colspan="2">
../images/header/buttonsleft.gif</td>
<td> ../images/header/home.gif (../default.asp)</td>
<td colspan="2"> ../images/header/products.gif (../products/default.asp)</td>
<td colspan="2"> ../images/header/lifestyles.gif (../lifestyles/default.asp)</td>
<td> ../images/header/demos.gif (../demos/default.asp)</td>
<td> ../images/header/support.gif (../support/default.asp)</td>
<td> ../images/header/pressroom.gif (../pressroom/default.asp)</td>
<td> ../images/header/company.gif (../company/default.asp)</td>
<td colspan="2">
../images/header/buttonsright.gif</td>
</tr>
<tr>
<td colspan="13">
../images/header/wave.gif</td>
</tr>
<tr>
<td colspan="4">
../images/header/wavebottom.gif</td>
<td height="52" colspan="9" bgcolor="#FFFFFF"><span class="crumbs">Home (../default.asp) ></span> <!-- TemplateBeginEditable name="crumbs" --><span class="crumbs">crumb</span><!-- TemplateEndEditable --> </td>
</tr>
<tr>
<td height="118" colspan="4" rowspan="2" align="left" valign="top" bgcolor="#CCCCCC"><!-- TemplateBeginEditable name="navbar" --><!-- TemplateEndEditable --> </td>
<td height="88" colspan="9" align="left" valign="top" bgcolor="#FFFFFF"> <!-- TemplateBeginEditable name="body" --><!-- TemplateEndEditable --></td>
</tr>
<tr>
<td height="30" colspan="9" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><div align="center"><span class="footer">Home (../default.asp) |Authorized Dealer Zone (../zone/default.asp)|Find a Dealer (../find_dealer/default.asp)|Contact Us (../company/contactus.asp)</span></div></td>
</tr>
<tr>
<td class="footer"><div align="center">&copy;2005 ReQuest Inc. </div></td>
</tr>
</table></td>
</tr>
<tr>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
<td>
../images/header/spacer.gif</td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>

likegluelikecrew
10-12-2005, 10:47 PM
I got it working, thanks anyway!