Website 'header'

liunx

Guest
Trying to use a single webpage as my 'background'<br />
and then bring up the other pages of the site onto that same background. Here's what I've tried, should this work?<br />
The page that I'd like to use as my 'header' is under<br />
filename 'header.asp'<br />
<br />
The HTML of the rest of my pages starts like this:<br />
<br />
<!-- #include file="header.asp" --><br />
<div align="center"><br />
<center><br />
<br />
is this the correct way to do this, it is not working<br />
for me right now. The 'header.asp' page will come up looking like it should (the background of the site) and<br />
the other pages will come up but with no background.<br />
<br />
Is there a 'tweak' required in what I've got right now or will this not work period? If it is just a tweak, do I name the 'header' page my 'index.htm' page and change the HTML of the other pages accordingly?<br />
<br />
Thanks for your time.<!--content-->Can you give us a link to have a look at the problem?? or attach the files??<!--content-->if every page has this in it<br />
<br />
<!-- #include file="header.asp" --> <br />
<div align="center"> <br />
<center> <br />
<br />
<br />
and header.asp has the body tag in it, then it should work for everypage. the thing tht I see can be a problem is the body background is in one folder and when you change the page it won't load it as it can't find it. best bet is to use the full url of the image you are trying to use.<!--content-->I'm not sure my 'body tag' is correctly done in my<br />
header.asp file, if you'd check it out I'd appreciate it.<br />
The one page is my header, and I'll follow up in the next reply with an example of an info page that I've been trying have fall in on that header.<!--content-->This is an example of a page I'm trying to have come up<br />
with the header as it's header/background<!--content-->when you load the first page that has the include in it, is that page a .shtml (SSI) or asp page?<br />
<br />
it looks ok to me. do you have a link?<!--content-->I used htm to be able to attach them here but<br />
they're all ASP. So with the 2 pages I attached,<br />
if you put them in the same folder and open the<br />
info page it comes up with the header as the background<br />
for you right now?<!--content-->no they can't do that as they are htm's they have to be on a server and either shtml or a serverside language like asp.<br />
<br />
let me look at them on my server and see what I find. but it should do what you think it should.<!--content-->ok I think I found your problem. you have extra spaces in that include.<br />
<br />
<!-- #include file="header.asp" --> <br />
<br />
<br />
take out the spaces<br />
<br />
<!--#include file="header.asp"--><!--content-->Scout, first off, I want to thank you for taking<br />
the time out of your day to look at this for me, I<br />
defintely appreciate it, it's been driving me nuts.<br />
Unfortunately I've taken those spaces out and I'm<br />
still not having any success. Has it worked on your<br />
server?<!--content-->yes it does work. I have info1.htm named to info1.shtml and the header file named header1.htm. it loads and the background is loaded.<!--content-->Hey Scoutt<br />
<br />
Well, it looks like it's finally working like I<br />
was looking for it to. Thanks greatly for your<br />
insight.<br />
<br />
But now though, all the rest of my 'info' type pages<br />
are ASP, do they all need to be changed to shtml with<br />
'header' remaining htm? Was that the key or do you think<br />
I just screwed something up earlier when you brought up the "extra spaces' problem, and it would work just as well<br />
if all the pages were ASP files and my web host supports ASP?<!--content-->well I am not very good with asp, but I think that <br />
<!-- #include --> is only SSI. someone will come in and tell me wrong, that is a good thing. :D<br />
<br />
maybe asp has somehting similar? who knows.<!--content-->Ok then Scoutt, as I said, I certainly appreciate<br />
your help to this point, you've been great. <br />
<br />
I do hope I can keep the ASP pages though since<br />
I'm all set up with that so I'll agree with you and<br />
hope someone will come in and tell us we're wrong, and<br />
that we can use <!-- #include --> with ASP or else it's<br />
back to the drawing board. <br />
<br />
Take good care, I appreciate your time and will look<br />
for some other posts from you on the other threads here<br />
for your great info. Have a good one.<!--content-->
 
Back
Top