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.

Coding Forum


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



Reply
Current link Dynamically disabled????
Old 09-07-2004, 12:47 AM Current link Dynamically disabled????
Novice Talker

Posts: 8
Trades: 0
Title: Current link Dynamically disabled????

Hello,

What is the best way to dynamically disable the "current page" link in a CSS based nav?

I would prefer PHP... no JS...

Because I am using templates, I do not want to hand style the menu on each page like so:

Code:
/*css*/
	a:active, a.current {
	color: #666666;
}
Code:
<!-- HTML -->

<div id="nav_banner">
		<a href="#" class="current">Home</a>
		&nbsp;
		<a href="#">About</a>
		&nbsp;
		<a href="#">Folio</a>
		&nbsp;
		<a href="#">Resume</a>
		&nbsp;
		<a href="#">Code</a>
		&nbsp;
		<a href="#">Forum</a>
		&nbsp;
		<a href="#">Contact</a>
		&nbsp;
		<a href="#">Links</a>
		</div>
I would like to have a dynamic nav that knows to disable/un-link the current link....

Any help/links/tuts/code would be greatly appreciated!

Thanks!
Cheers
Micky
mhulse is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Current link Dynamically disabled????
 

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.10541 seconds with 12 queries