CSS Navigation Rel Link

L

Leeza

I am very new to CSS and HTML design and have gotten stuck. I have a website
that has multiple pages. I have created a navigation menu using an unordered
list. Rather than having to update each and every page everytime I want to
change the menu is there a way that I can link to one common one kind of the
way that you do with a css for format???

Thanks!
Leeza
 
J

Jens Duttke

hi!

I have a website
that has multiple pages. I have created a navigation menu using an unordered
list. Rather than having to update each and every page everytime I want to
change the menu is there a way that I can link to one common one kind of the
way that you do with a css for format???

That's only possible on the server-side, there is no easy way (currently) to
do that on the client (without JavaScript and Frames).
Not all servers support these functions (mostly free webspace-providers
doesn't).

Ok, first of all you can do it via SSI (Server Side Includes) :

Place <!--#include file="yourmenucode.ssi" --> in the html-files where
normally the menu is located, and place the menu-code in yourmenucode.ssi.

For more informations look here :

http://www.apacheweek.com/features/ssi

If the server does not support SSI, you could try PHP (some server support
PHP but not SSI)

In PHP you have to use <?php include "yourmenucode.ssi"; ?>

More info's here :

http://de.php.net/manual/de/function.include.php

Not much free webspace-providers support SSI and PHP, but there are some.
If you have a commerical webspace-provider, he should normally support them,
otherwise he sucks :p

Cu, Jens
 
L

Leeza

That's only possible on the server-side, there is no easy way (currently) to
do that on the client (without JavaScript and Frames).
Not all servers support these functions (mostly free webspace-providers
doesn't).

Ok, first of all you can do it via SSI (Server Side Includes) :

Place <!--#include file="yourmenucode.ssi" --> in the html-files where
normally the menu is located, and place the menu-code in yourmenucode.ssi.

For more informations look here :

http://www.apacheweek.com/features/ssi

If the server does not support SSI, you could try PHP (some server support
PHP but not SSI)

In PHP you have to use <?php include "yourmenucode.ssi"; ?>

More info's here :

http://de.php.net/manual/de/function.include.php

Not much free webspace-providers support SSI and PHP, but there are some.
If you have a commerical webspace-provider, he should normally support them,
otherwise he sucks :p

Cu, Jens

Thanks so much! I will see if my provider supports SSI / PHP.
 
E

E-Guy

Your server should support if you rename your files to a .shtml extension
rather than .htm or .html. Also, if you are going to use the php include,
your pages will need to be filename.php.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top