Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include a header on all pages problem

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
US
OK I know that none of the pictures will show but could someone please give me some help with this.
I think is is not your normal html but a little more advanced..three pages i will do one at a time then if someone could look it would be great.
The problem I have is that these pages do an include of a header and a footer but I cannot get the text to appear in the middle or at right here take a look

--------------------------------------------------page 1 index.html
--------------------
<!--#include file =&quot;Site_header.htm&quot;-->

<h1>this text should show up in the middle<nobr>Hello</nobr> website!</h1>
<h2>&nbsp;</h2>
<!--#include file =&quot;footer_temp.html&quot;-->

---------------------page2-------site_header.htm-----
<html>
<head>
<title>Site_header.gif</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;&quot;>
<!-- Fireworks 4.0 Dreamweaver 4.0 target. Created Mon Feb 11 10:45:39 GMT-0600 (Central Standard Time) 2002-->
<script language=&quot;JavaScript&quot;>
<!--
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf(&quot;?&quot;))>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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); 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))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&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.indexOf(&quot;#&quot;)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

//-->
</script>
</head>
<body bgcolor=&quot;#ffffff&quot; onLoad=&quot;MM_preloadImages('images/Site_header_r2_c5_f2.gif','images/Site_header_r3_c7_f2.gif','images/Site_header_r2_c9_f2.gif','images/Site_header_r2_c11_f2.gif','images/Site_header_r2_c13_f2.gif','images/Site_header_r7_c1_f2.gif','images/Site_header_r10_c1_f2.gif');&quot;>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;810&quot;>
<!-- fwtable fwsrc=&quot;RRC_HE~1.PNG&quot; fwbase=&quot;Site_header.gif&quot; fwstyle=&quot;Dreamweaver&quot; fwdocid = &quot;272104312&quot; fwnested=&quot;1&quot; -->
<tr>
<td><img name=&quot;Site_header_r1_c1&quot; src=&quot;images/Site_header_r1_c1.gif&quot; width=&quot;810&quot; height=&quot;113&quot; border=&quot;0&quot; usemap=&quot;#m_Site_header_r1_c1&quot;></td>
</tr>
<tr>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;810&quot;>
<tr>
<td><img name=&quot;Site_header_r2_c1&quot; src=&quot;images/Site_header_r2_c1.gif&quot; width=&quot;153&quot; height=&quot;30&quot; border=&quot;0&quot; usemap=&quot;#m_Site_header_r2_c1&quot;></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;134&quot;>
<tr>
<td><a href=&quot;ride/&quot; onMouseOut=&quot;MM_swapImgRestore();&quot; onMouseOver=&quot;MM_swapImage('Site_header_r2_c5','','images/Site_header_r2_c5_f2.gif',1);&quot; ><img name=&quot;Site_header_r2_c5&quot; src=&quot;images/Site_header_r2_c5.gif&quot; width=&quot;134&quot; height=&quot;26&quot; border=&quot;0&quot; alt=&quot;Rider Manual&quot;></a></td>
</tr>
<tr>
<td><img name=&quot;Site_header_r5_c5&quot; src=&quot;images/Site_header_r5_c5.gif&quot; width=&quot;134&quot; height=&quot;4&quot; border=&quot;0&quot;></td>
</tr>
</table></td>
<td><img name=&quot;Site_header_r2_c6&quot; src=&quot;images/Site_header_r2_c6.gif&quot; width=&quot;13&quot; height=&quot;30&quot; border=&quot;0&quot;></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;104&quot;>
<tr>
<td><img name=&quot;Site_header_r2_c7&quot; src=&quot;images/Site_header_r2_c7.gif&quot; width=&quot;104&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td><a href=&quot;ride/&quot; onMouseOut=&quot;MM_swapImgRestore();&quot; onMouseOver=&quot;MM_swapImage('Site_header_r3_c7','','images/Site_header_r3_c7_f2.gif',1);&quot; ><img name=&quot;Site_header_r3_c7&quot; src=&quot;images/Site_header_r3_c7.gif&quot; width=&quot;104&quot; height=&quot;29&quot; border=&quot;0&quot; alt=&quot;Rider Manual&quot;></a></td>
</tr>
</table></td>
<td><img name=&quot;Site_header_r2_c8&quot; src=&quot;images/Site_header_r2_c8.gif&quot; width=&quot;13&quot; height=&quot;30&quot; border=&quot;0&quot;></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;89&quot;>
<tr>
<td><a href=&quot;ride/&quot; onMouseOut=&quot;MM_swapImgRestore();&quot; onMouseOver=&quot;MM_swapImage('Site_header_r2_c9','','images/Site_header_r2_c9_f2.gif',1);&quot; ><img name=&quot;Site_header_r2_c9&quot; src=&quot;images/Site_header_r2_c9.gif&quot; width=&quot;89&quot; height=&quot;25&quot; border=&quot;0&quot; alt=&quot;Rider Manual&quot;></a></td>
</tr>
<tr>
<td><img name=&quot;Site_header_r4_c9&quot; src=&quot;images/Site_header_r4_c9.gif&quot; width=&quot;89&quot; height=&quot;5&quot; border=&quot;0&quot;></td>
</tr>
</table></td>
<td><img name=&quot;Site_header_r2_c10&quot; src=&quot;images/Site_header_r2_c10.gif&quot; width=&quot;4&quot; height=&quot;30&quot; border=&quot;0&quot;></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;113&quot;>
<tr>
<td><a href=&quot;ride/&quot; onMouseOut=&quot;MM_swapImgRestore();&quot; onMouseOver=&quot;MM_swapImage('Site_header_r2_c11','','images/Site_header_r2_c11_f2.gif',1);&quot; ><img name=&quot;Site_header_r2_c11&quot; src=&quot;images/Site_header_r2_c11.gif&quot; width=&quot;113&quot; height=&quot;26&quot; border=&quot;0&quot; alt=&quot;Rider Manual&quot;></a></td>
</tr>
<tr>
<td><img name=&quot;Site_header_r5_c11&quot; src=&quot;images/Site_header_r5_c11.gif&quot; width=&quot;113&quot; height=&quot;4&quot; border=&quot;0&quot;></td>
</tr>
</table></td>
<td><img name=&quot;Site_header_r2_c12&quot; src=&quot;images/Site_header_r2_c12.gif&quot; width=&quot;4&quot; height=&quot;30&quot; border=&quot;0&quot;></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;147&quot;>
<tr>
<td><a href=&quot;ride/&quot; onMouseOut=&quot;MM_swapImgRestore();&quot; onMouseOver=&quot;MM_swapImage('Site_header_r2_c13','','images/Site_header_r2_c13_f2.gif',1);&quot; ><img name=&quot;Site_header_r2_c13&quot; src=&quot;images/Site_header_r2_c13.gif&quot; width=&quot;147&quot; height=&quot;26&quot; border=&quot;0&quot; alt=&quot;Rider Manual&quot;></a></td>
</tr>
<tr>
<td><img name=&quot;Site_header_r5_c13&quot; src=&quot;images/Site_header_r5_c13.gif&quot; width=&quot;147&quot; height=&quot;4&quot; border=&quot;0&quot;></td>
</tr>
</table></td>
<td><img name=&quot;Site_header_r2_c15&quot; src=&quot;images/Site_header_r2_c15.gif&quot; width=&quot;36&quot; height=&quot;30&quot; border=&quot;0&quot;></td>
</tr>
</table></td>
</tr>
<tr>
<td><img name=&quot;Site_header_r6_c1&quot; src=&quot;images/Site_header_r6_c1.gif&quot; width=&quot;810&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;810&quot;>
<tr>
<td><a href=&quot;ride/&quot; onMouseOut=&quot;MM_swapImgRestore();&quot; onMouseOver=&quot;MM_swapImage('Site_header_r7_c1','','images/Site_header_r7_c1_f2.gif',1);&quot; ><img name=&quot;Site_header_r7_c1&quot; src=&quot;images/Site_header_r7_c1.gif&quot; width=&quot;110&quot; height=&quot;25&quot; border=&quot;0&quot; alt=&quot;Rider Manual&quot;></a></td>
<td><img name=&quot;Site_header_r7_c3&quot; src=&quot;images/Site_header_r7_c3.gif&quot; width=&quot;700&quot; height=&quot;25&quot; border=&quot;0&quot;></td>
</tr>
</table></td>
</tr>
<tr>
<td><img name=&quot;Site_header_r8_c1&quot; src=&quot;images/Site_header_r8_c1.gif&quot; width=&quot;810&quot; height=&quot;10&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;810&quot;>
<tr>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;120&quot;>
<tr>
<td><img name=&quot;Site_header_r9_c1&quot; src=&quot;images/Site_header_r9_c1.gif&quot; width=&quot;120&quot; height=&quot;10&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;120&quot;>
<tr>
<td><a href=&quot;ride/&quot; onMouseOut=&quot;MM_swapImgRestore();&quot; onMouseOver=&quot;MM_swapImage('Site_header_r10_c1','','images/Site_header_r10_c1_f2.gif',1);&quot; ><img name=&quot;Site_header_r10_c1&quot; src=&quot;images/Site_header_r10_c1.gif&quot; width=&quot;94&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Rider Manual&quot;></a></td>
<td><img name=&quot;Site_header_r10_c2&quot; src=&quot;images/Site_header_r10_c2.gif&quot; width=&quot;26&quot; height=&quot;30&quot; border=&quot;0&quot;></td>
</tr>
</table></td>
</tr>
<tr>
<td><img name=&quot;Site_header_r11_c1&quot; src=&quot;images/Site_header_r11_c1.gif&quot; width=&quot;120&quot; height=&quot;6&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td valign=&quot;top&quot;>This is left hand side bar text.</td>
</tr>
</table></td>

<td valign=&quot;top&quot;>This is main body text</td>
<td valign=&quot;top&quot;>This is the right hand sidebar.</td>
</tr>
</table></td>
</tr>
<map name=&quot;m_Site_header_r1_c1&quot;>
<area shape=&quot;circle&quot; coords=&quot;71,55, 63&quot; href=&quot; title=&quot;Bennigan's MS 150 Home Page&quot; alt=&quot;Bennigan's MS 150 Home Page&quot; >
<area shape=&quot;poly&quot; coords=&quot;641,0,810,0,810,70,641,70,641,0&quot; href=&quot; title=&quot;National MS Society, Lone Star Chapter&quot; alt=&quot;National MS Society, Lone Star Chapter&quot; >
</map>
<map name=&quot;m_Site_header_r2_c1&quot;>
<area shape=&quot;circle&quot; coords=&quot;71,-58, 63&quot; href=&quot; title=&quot;Bennigan's MS 150 Home Page&quot; alt=&quot;Bennigan's MS 150 Home Page&quot; >
</map>
</table>

------------page3--footer_temp.html---------

<td valign=&quot;top&quot;><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;119&quot;>
<tr>

<td><img name=&quot;header_temp_r2_c4&quot; src=&quot;../images/header_temp_r2_c4.gif&quot; width=&quot;119&quot; height=&quot;20&quot; border=&quot;0&quot;></td>
</tr>
<tr>

<td valign=&quot;top&quot;> <!---This is the right hand sidebar. ---> &nbsp; <a href=&quot;tour_photography/&quot;><img src=&quot;../images/ad_tour_photos.gif&quot; width=&quot;120&quot; height=&quot;200&quot; border=&quot;0&quot;></a>
</td>
</tr>
</table></td>
<div align=&quot;center&quot;>
<hr>
<a href=&quot;mailto:webmaster@test.com&quot;>webmaster@test.com</a><br>

</div><hr>
</body>
</html>
------------------------------
any ideas?
 
For me the text shows up fine.
Make sure the file names are correct...

/Laleh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top