using a javascript navigation menu in mutliple pages
I am currently using an external javascript file to create a navigation menu for my site. It requires entries such as menu color and menu items for each page, which is time consuming to alter each identical page for my site. I would like to use the javascript that i am now (no hard coded menu items, colors), but have only one source for the menu properties instead of altering each page every time i need to alter the menu.
My question is thus: is it possible to use my javascript and in HTML set the properties (menu color, items, etc), but do this once and then have it automatically update the HTML in all of my associated pages, rather than editing the HTML on all of my pages?
exbabylon posted this at 05:34 — 10th January 2001.
They have: 61 posts
Joined: Aug 2000
how about using a javascript to write the HTML and include that? Then THAT could include the navagation. Or how about SSI?? I posted a CGI earlier that also lets you include a file. TXT or HTML.... anything that's ACSII.
http://webmaster-forums.com/showthread.php?threadid=13166
God Bless
[=1]Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.[/=1]
uncleJ posted this at 07:28 — 10th January 2001.
They have: 2 posts
Joined: Jan 2001
I am not using perl or cgi's, so i need to either write another javascript that is hard coded with my info or do the #include statements...I can't seem to get either of them to work and I am wondering if it is because the #include statement (assuming that i include a .inc file) needs to be in the middle of javascript tags since it needs to be read as javascript...then I thought that I'd attempt to hard code a javascript instead and so I pulled my hard coded script from a page, saved that as a .js file and then ttied to include that .js file in the html page...neither attempt worked!! what am i missing or doing incorrectly?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.