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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help with SHTML Menus and Footers Options

Status
Not open for further replies.

zinderellie

Technical User
Oct 28, 2002
38
US
Hi There!

I have a lot of web pages and have decided it would be best to switch over to SHTML site menus and footers. My problem began when I tried to add a second horizontal menu to my page. The first vertical left side menu worked great. Then I added a footer, and it worked fine. Finally I tried to add a horizontal menu and I keep getting the footer, even though the file name is different.

What am I doing wrong? The coding I have tried using is at the bottom of this message, and neither produce the correct results.

Thanks in advance for your help.

Tanya =)


<table>
<tr>
<td align="center"><!--#include virtual="topnavi.txt" -->
</td>
</tr>
</table>


<table>
<tr>
<td align="center"><!-- IFRAME -->
<iframe width="700" name="topnavi" src="topnavi.shtml" border="0"
frameborder="0" scrolling="auto" align="left" hspace="0" vspace="0"></
iframe>
</td>
</tr>
</table>
 
What is the filename of the footer? Have you tried visiting "topnavi.txt" or "topnavi.shtml" in a browser directly to see what they return? What is the difference between those two files?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi There,

Thanks for the response. I looked up 2 of the navigation files, and they are okay. The third file isn't uploaded to my web host yet.

There is no content difference between the topnavi.txt and topnavi.shtml, just different file extensions.


Is there some kind of naming convention or positioning that will allow all 3 shtml files to display properly on my web pages? The first 2 displayed fine. It's just the 3rd one that doesn't.

Tanya
 
I have uploaded the file, and it displays the correct content.

Here's the file link - or

So... I have 3 different files uploaded, and when each is checked, they do display the correct information. However, on the web page they do not.

Here are the other 2 again-


The topnavi content is replaced with the footer content.

Any ideas why?

Thanks.
 
Hmmm, if I go to the root of your page, I see it with all three files normally included both in IE7 and FF. Is there another page where you're including them and it doesn't work?

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Ok... not sure why, but I had to rename the original web page with the menu inserts before it would display correctly.

However, now all of my links are underlined again. I have a script on the web page set for no underline, but this must not work when a file is being inserted. Any ideas on how to fix this?

Also, is it my cache that is keeping the original file from displaying correctly? I would like to use my original file name, but every time I change it back I get the same display problems. I did clear the cache already too.

I have uploaded the following files so you can check out the code.


Thanks again for all of your help! =)
 
Your navigation, at the page you show the second is lying in an iframe. Iframe loads a new page, and you need to define all css in that page itself, not the parent page. You have no css in the inserted iframe and so there is no behaviour for your links. Are you planning on using iframes or server-side includes?

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Yes. I am just beginning, and have just created the left-side menu, top horizontal navigation, and footer information.

Apparently, I now need to learn how to format these SSI sections.

Do you know of some good reference sites to learn from as far as the formatting goes?
 
Before you go any further down this path, may I suggest that you take a look at faq253-6554 . It explains (hopefully) a better approach to what you, ahem, include in each include file.

You might also be better off forgetting about includes for a little while. Just work on your page template, tweaking the markup and the CSS until you get it looking right, and then decide which bits to hive off into includes.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top