Current link Dynamically disabled????
Posted: Mon Sep 06, 2004 10:54 pm
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:
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
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: Select all
/*css*/
a:active, a.current {
color: #666666;
}Code: Select all
<!-- HTML -->
<div id="nav_banner">
<a href="#" class="current">Home</a>
<a href="#">About</a>
<a href="#">Folio</a>
<a href="#">Resume</a>
<a href="#">Code</a>
<a href="#">Forum</a>
<a href="#">Contact</a>
<a href="#">Links</a>
</div>Any help/links/tuts/code would be greatly appreciated!
Thanks!
Cheers
Micky