Welcome to WebmasterWorld Guest from 54.159.214.250

Forum Moderators: incrediBILL

Dynamic Navigation query

   
10:28 am on Jun 27, 2001 (gmt 0)

5+ Year Member



Can I use a linked javascript file to insert the HTML code for site navigation at the bottom of pages to avoid re-coding on all the pages when something changes?
11:00 am on Jun 27, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Smart and Welcome to Webmaster World!

Yes you can use JS to create navigation at the bottom of your pages but I would reccomend using SSI instead.

You can create a file with your navigation in and then insert that file on the bottom of the pages, this way you only need edit the one file and all other pages that reference that file will be updated automatically

Files will need to be .shtml rather than html or htm. Just place

<!--#include virtual="navigation.html" -->

where you want your navigation to appear and thats it ;)

6:01 pm on Jun 27, 2001 (gmt 0)

5+ Year Member



thanks for the quick reply but i wouldlove to know the source cose for the js file that is to be made for solving my purpose....can u please send me that
 

Featured Threads

Hot Threads This Week

Hot Threads This Month