Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Update Navigation Links?

Recommended Posts

One of the requirements for the site Im working on right now is to be able to update navigation links easily. Its easy to do with frames, which I want to avoid. If I have 8 different pages, and add another page or anything, I dont want to have to open 8 pages and make the change to all of them.Is there another way, like having some kind of external style sheet, and bieng able to update that and have it carry over to all the other pages? As far as I understand, you can only have CSS code in a external stylesheet, and all the link infomation is in the actual page itself.kvarnerexpress

Share this post


Link to post
Share on other sites

You should use Server side Technologies such as PHP or client side such as Javascript to do that. You can insert all your navigation links in a file or in a database table and retrieve them with PHP or Javascript. Then with this information you can build the navigation menu dynamically. That way everytime you want to insert a new navigation link you should just modify the file or table.By the way CSS can be inside XHTML files between <style> tags or in external files.

Share this post


Link to post
Share on other sites

You should use Server side Technologies such as PHP or client side such as Javascript to do that. You can insert all your navigation links in a file or in a database table and retrieve them with PHP or Javascript. Then with this information you can build the navigation menu dynamically. That way everytime you want to insert a new navigation link you should just modify the file or table.

 

By the way CSS can be inside XHTML files between <style> tags or in external files.

175191[/snapback]


I would suggest a PHP include with CSS properties on your whole site. You can include it before the </head> document of your page or insert a <span class="whatever"> tag here. I'm sure you could find a lot of tutorials and practice scripts on line. Just make sure that whatever you make validates by W3 standards :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.