There should some proper way, as I want to do it for the whole site (for all links/subpages in my navbar). I am trying since long but cannot find a non-javascript solution.
Here is another example site that adds class="selected" in the current page.
http://depkac.com/
--------------- Added [DATE]1240167671[/DATE] at [TIME]1240167671[/TIME] ---------------
okay i got it working with THIS_SCRIPT. Its working good.
Is there any conditional that would take care of sub-pages too? Like say misc.php?do=bbcode
thanks