Forum Moderators: open

Message Too Old, No Replies

Site Navigation

         

ccteam

2:57 pm on Jan 28, 2003 (gmt 0)

10+ Year Member



Hi,

Currently i use tables to sort ouot my site layout and HATE frames alothough i have seen some good websites with frames just none i have made! However the disadvantage of using tables is each time i need to add or change a link on all the pages i have to go and change it on EVERY PAGE!

So is there such a script that can allow me to use a navigation that gets its conetnt for a file? I have used a DHTML nav bar before at the top of the page which had a separate content file. However i need one which can give me a similar naviagtion bar to the ones i use on my site.

<snip>

thanks again

[edited by: korkus2000 at 3:56 pm (utc) on Jan. 28, 2003]
[edit reason] TOS #21 No site reviews please [/edit]

Birdman

3:12 pm on Jan 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have php available, you can use the php include() function [php.net].

There is a similar ASP function if you are hosted on a MS platform.

You can still use tables if you wish.

Do you have any server side scripting experience?

ccteam

3:49 pm on Jan 28, 2003 (gmt 0)

10+ Year Member



none wot so ever :(

wld that mean all the pages would have to be PHP and written in a different code?

HTML, FLASH, JAVASCRIPT and basic DHTML is the best iu can manage :( i jus thought there wld b a script that was like the one i used before but not a top bar but a horizontal one which i cld postition

thanks

WibbleWobble

4:22 pm on Jan 28, 2003 (gmt 0)

10+ Year Member



You could throw in a server side include (file, or virtual) to a text file with all the nav in it? Its simplistic, but I know it works, to an acceptable degree.

Something like <!--#include virtual="/navigation-links.txt"-->

DrDoc

5:31 pm on Jan 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, since you handle JavaScript .. Why not change the table to something like:

<script type="text/javascript" src="js/table.js"></script>

.. and let the JS print the table for you ..

rcjordan

5:33 pm on Jan 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>and let the JS print the table for you

Yep. Been doing that for about 2 years now. Works great.

MWpro

8:59 pm on Jan 28, 2003 (gmt 0)

10+ Year Member



I'd have to say php is the best thing to do... you do not need any experience whatsoever to do the includes so don't put it off that quickly...

Layout your tables or whatever, and where the menu would go put
<?php include ("menu.php");?> in. Put all the menu content in menu.php and resave all the pages you plan on using the includes on as .php, then upload it and you're set.

Susanne

1:53 pm on Jan 29, 2003 (gmt 0)

10+ Year Member



Maybe you could work with templates? Dreamweaver is convenient for this purpose.