Hi
I would like to have the link showing the current page you are in using CSS.
How do you change the class from ie. class="link" to Class="Currentlink"
when you click the link??
Then when you click on another link (i'm doing this on a navigation bar) the class on that link changes to "Currentlink" and the previous link changes back to "link"
Is this possible just using CSS :?
Changing link classes of the page that's currently open?
Well - when you click a link then the browser will load the page that you clicked.
On the new page that loaded for the link you clicked the class for the link that you clicked will be class="currentlink"
But on the previous page you were viewing its class was class="link"
In other words a link to a page, which you are currently viewing will have a class="currentlink"
Hope that made sense.
Regards
Day
Changing link classes of the page that's currently open?
Thanks for the info.
the navigational bar i am using in a separate file and is dynamically included in everypage (using coldfusion). Therefore from what you have said i don't think this can be done! Maybe i'm wrong!!
Thanks again
You are correct, unless cold fusion has some script that will do it or you use javascript to determine what page is showing.
People that use SSI (Server Side Includes) or frames would have the same problem.
Regards
Day
Changing link classes of the page that's currently open?
'ere, where did that post go? I've just got Day's 2 replies here...