Results 1 to 10 of 10
10-05-2002, 02:27 PM #1
Say if a large site wanted to add a new link to their navigation menu, would they have to go through every single page and add that link, or is there another way to do this?
10-05-2002, 02:36 PM #2
2 main methods for a common nav table
The 2 main methods for displaying and updating a nav table is using frames and includes. With a frameset, you have a common nav frame and it will display any updated links to all pages. With an include, you have a single .inc, .txt, .js or .php file with your links and it is included into as many pages as needed. You simply update the single file to update all pages. Now, if the pages already exist and there are a lot of them, you would have to manually add the includes to each page. If the pages are dynamically generated from a template, then only one edit is needed.
Last edited by sonofmidi; 10-05-2002 at 02:41 PM.
10-05-2002, 03:22 PM #3
I tried to use the <!--include file"whatever.html"-->, yet it didn't work.
10-05-2002, 05:59 PM #4
The format for that include command is incorrect.
It works like this -
<!--#include file="whatever.htm" -->
10-05-2002, 06:08 PM #5
Do I have to upload it to the internet before it will work? Because it won't work on my computer.
10-05-2002, 06:35 PM #6
Yes, you do.
The #include command is parsed by the software on the server. Its unlikely your computer has the same software needed, tho if you have something called IIS on a windows machine it should work thru that.
Heres a handy tutorial on using server side includes (SSI)
10-05-2002, 06:48 PM #7
Okay. Also, are you saying that the extension at the end of the page that has the include in it has to be '.shtml'? It is currently a '.html'.
10-05-2002, 08:55 PM #8
10-06-2002, 09:50 AM #9
Another include method is using a JS insert.
Open a text editor and add this:
Save the file as ie: links.js
Last edited by sonofmidi; 10-06-2002 at 09:52 AM.
10-06-2002, 10:49 AM #10