Greetings,
Ok. Im running into some errors with my coding, but my coding seems to be fine, its the output. My green buttons / mouseover functions for the header part of my website are not being aligned right or are not aligning correctly. I have six buttons, and one always drops down, but the others are spread apart. And I need to get them all close together and all six on the same horizontal line type thing. Also, this is a new type of project Im working on and when I built / designed the template, it worked fine with just one HTML file, but now since I have broken it into overall_header.tpl, index_body.tpl and now a overall_footer.tpl it causes errors. See image for example of what I mean, and the coding I have used for the overall_header.tpl file.
Code:
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>The Tech Base :: PC, Programming and Design Support</title>
<link href="templates/style.css" rel="stylesheet" type="text/css">
<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>
</head>
<body onLoad="MM_preloadImages('templates/images/m1r.jpg','templates/images/m2r.jpg','templates/images/m3r.jpg','templates/images/m4r.jpg','templates/images/m5r.jpg','templates/images/m6r.jpg')">
<div id="wrap">
<div id="top">
<img src="templates/images/spacer.gif" height="38" width="1"><br>
<img src="templates/images/spacer.gif" width="25" height="1" align="absmiddle">
<img src="templates/images/logo.jpg" align="absmiddle">
<img src="templates/images/spacer.gif" width="333" height="1">
<a href="./index.php"><img src="templates/images/s1.jpg" border="0" align="absmiddle"></a>
<img src="templates/images/spacer.gif" width="8" height="1"><a href="#"><img src="templates/images/s2.jpg" border="0" align="absmiddle"></a>
<img src="templates/images/spacer.gif" width="8" height="1"><a href="#"><img src="templates/images/s3.jpg" border="0" align="absmiddle"></a><br>
<img src="templates/images/spacer.gif" width="1" height="11"><br>
<a href="./index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image49','','templates/images/m1r.jpg',1)"><img src="templates/images/m1.jpg" name="Image49" width="116" height="54" border="0"></a>
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image50','','templates/images/m2r.jpg',1)"><img src="templates/images/m2.jpg" name="Image50" width="111" height="54" border="0"></a>
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image51','','templates/images/m3r.jpg',1)"><img src="templates/images/m3.jpg" name="Image51" width="111" height="54" border="0"></a>
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image52','','templates/images/m4r.jpg',1)"><img src="templates/images/m4.jpg" name="Image52" width="111" height="54" border="0"></a>
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image53','','templates/images/m5r.jpg',1)"><img src="templates/images/m5.jpg" name="Image53" width="112" height="54" border="0"></a>
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image54','','templates/images/m6r.jpg',1)"><img src="templates/images/m6.jpg" name="Image54" width="115" height="54" border="0"></a>
<br>
</div>
<div id="top_txt">
<img src="templates/images/spacer.gif" width="1" height="8"><br>
<img src="templates/images/spacer.gif" width="19" height="1">
<a href="#" class="top">www.thetechbase.com</a>
<img src="templates/images/spacer.gif" width="295" height="1">
<span class="top">Current Date: December 05, 2005</span>
</div>