Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
How to Make an Easy to EDIT navigation with CSS & some Javascript
Old 01-21-2008, 01:33 PM How to Make an Easy to EDIT navigation with CSS & some Javascript
Junior Talker

Posts: 3
Trades: 0
Hi, everyone! I am in the process of designing my first complete CSS site and I have a question on how to get my navigation to be easy to edit. I need to be able to make a change in one place and the navigation updates on ALL pages automatically.

I am not talking about the design portion, I know I can edit my style sheets to change the way the nav looks, but I want a way for me to be able to add more links or delete links easily. Is this something that can be accomplished through CSS?

I am using some javascript in my navigation so that when a user clicks on certain main titles the sub-areas open up directly underneath.

I read somewhere about using <!--#include file="css/main-nav.asp" --> and making an .asp file with all the nav info in it. Well, when I do that it shows up in dreamweaver design view fine - but not in the browsers. I even uploaded it to my server to check it out and it still doesn't work. BUT I think I need a different solution than .asp anyways because I am on a linux server.
Is that correct?

Any ideas would be greatly appreciated! Thanks!
graf_ix_guru is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2008, 01:49 PM Re: How to Make an Easy to EDIT navigation with CSS & some Javascript
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
BUT I think I need a different solution than .asp anyways because I am on a linux server.
Is that correct?
Yep that is correct.

http://www.candsdesign.co.uk/articles/coding/includes/

You may have PHP available, or you may have SSI
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-24-2008, 11:29 PM Re: How to Make an Easy to EDIT navigation with CSS & some Javascript
BlackWater's Avatar
Experienced Talker

Posts: 31
Trades: 0
Code:
<?php include("navigation.php"); ?>
non-css solution but it works great
__________________
Code:
if( $hungry ) { eat(); } 
    else { sleep(); }
BlackWater is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to Make an Easy to EDIT navigation with CSS & some Javascript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11694 seconds with 12 queries