Navigation

windows

Guest
I am building a site with quite a lot of pages which would be added to every month.<br />
I would like to have a drop down menu on every page that would link to all my pages.<br />
But the problem would be that when I added a new page I would have to go into every page on site and change it.<br />
Is there a way to change one link in menu so it affects all menus on every other page.<br />
<br />
Or is there any suggestions? On This Kind Of Navigation?<br />
I would like to put all these links into a drop down menu.<br />
<br />
<!-- m --><a class="postlink" href="http://amazing.as/johnmacsusatravel/USAMENU.html">http://amazing.as/johnmacsusatravel/USAMENU.html</a><!-- m --><br />
<br />
<br />
Thanks<!--content-->Do you have access to serverside methods (eg SSI, ASP, PHP, CGI etc) to include sections onto your page from extarnal files?<br />
<br />
If not your best solution is probably to use frames or iframes to link to an external navigation menu.<br />
There are other clientside options too, but these two are the most crossbrowser methods.<!--content-->The best solution I can think of is using server-side technology like Server Side Includes (SSI), or PHP.<br />
<br />
I assume you are using an Apache server, if so it is likely you'll have one or the other SSI is the easier one to use. <br />
<br />
An example of SSI command would be like <!--#include file="sample.txt"--> which would inset the contents of a file called sample.txt into your document. You might have to covert your *.htm to *.shtml to get it to work on your server.<br />
<br />
Stefan is too fast at typing :D.<!--content-->Thanks Stefan I Will Try My Best To Look Into This And Try To Get Help From College To Implement This<!--content-->If you are using dropdown menus, then you are probably using DHTML to create the dropdowns.<br />
<br />
A simple solution is to put the menu contents into an external .js file which will be used by all pages. All you need to do now is to update the external .js file and all you pages will now have the new dropdowns.<br />
<br />
HierMenus uses this technique. I'm not sure where you find it but a simple 'google' search should get you there.<br />
<br />
Hope this helps!<!--content-->Originally posted by nedals <br />
If you are using dropdown menus, then you are probably using DHTML to create the dropdowns.<br />
<br />
A simple solution is to put the menu contents into an external .js file which will be used by all pages. All you need to do now is to update the external .js file and all you pages will now have the new dropdowns.<br />
<br />
HierMenus uses this technique. I'm not sure where you find it but a simple 'google' search should get you there.<br />
<br />
Hope this helps! <br />
<br />
Relying on JavaScript for the site navigation to even work is very very very bad.<br />
The navigation is about the most important thing on your entire site and should never be left to rely on client side scripting.<br />
<br />
That said, if you provide a proper <noscript> backup on every page, eg a link to a plain html site map, then this combination might be a usable option.<br />
<br />
In any case you can make dropdown menus purely in CSS too. The obvious benefit of that is of cource that if JavaScriopt or even CSS is not available the navigation will still work. That IMO makes them clearly superior to any JS hiermenus.<!--content-->Thanks again Steffan.<br />
<br />
I think the simplest solution would be provide a proper <noscript> backup on every page, eg a link to a plain html site map, then this combination might be a usable option. <br />
<br />
This idea will work for me. I will try that.<br />
<br />
Thanks Once Again.<!--content-->I see, one was originally thinking more on the lines of a dropdown navigation menu inserted via SSI within a form using PHP script for action, rather than JavaScript, so it wouldn't break in a non-JavaScript enabled browser.<br />
<br />
<?<br />
if($inchoice=="XHTML")<br />
header("Location: <!-- m --><a class="postlink" href="http://www.xhtmlcoder.com/">http://www.xhtmlcoder.com/</a><!-- m -->");<br />
if($inchoice=="W3C")<br />
header("Location: <!-- m --><a class="postlink" href="http://www.w3c.org/">http://www.w3c.org/</a><!-- m -->");<br />
?><br />
<br />
Yes, the Pure CSS solution is very good as long as you don't use Micro$oft Explorer, then it degrades gracefully.<!--content-->Thanks Robert And Everyone, I am now working on new navigation system to add to my revamped site layout for late January 2003.<!--content-->
 
Back
Top