By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,203 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

Resetting visited link color and setting active link weight

beacon
100+
P: 579
I'm looking to reset the visited link color once another link is selected. Also, once that link takes me to a particular page, I want the font-weight for that page to be bold to indicate that it's the page you're looking at.

Now, if the links have never been visited before, they are blue. If you hover over the links they turn light blue. I want the user to be able to select the link and it take you to that page. On that page, I want the link that was selected to be disabled and bold so that it appears as the current page.

However, after you have visited each of the sites and hit the back button on the browser (IE7 in my case), all of the links are showing up as light blue instead of just the active one.

Am I going to have to set each of these links individually to be disabled and light blue when the user accesses the page? Also, how do I reset the color of the links each time the user gets back to the page?

If I don't use the a:visited tag in CSS, my visited links are the default purple color, which I obviously don't want.

Thanks for the help...
Feb 8 '08 #1
Share this Question
Share on Google+
1 Reply


drhowarddrfine
Expert 5K+
P: 7,435
None of that can be done using html/css. You would need javascript and, perhaps, some work done on the server side.
Feb 8 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.