473,770 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resetting visited link color and setting active link weight

beacon
579 Contributor
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
1 4116
drhowarddrfine
7,435 Recognized Expert Expert
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

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

Similar topics

3
17093
by: Matt Adams | last post by:
As well known I could specify the text color in the body tag like: <BODY TEXT=WHITE LINK=WHITE VLINK=RED ALINK=WHITE> What I want to achieve now is that always (!) the text of the last visited link and the text of the link under the cursor are red. All other links should be white. The problem with the construction above is that a visited link remains for the rest of the session red regardless wether it was visited 17 clicks back in...
17
3876
by: Rickard Lindhé | last post by:
Hey. I'm experiencing a problem using a css stylesheet on my homepage (http://w1.193.telia.com/~u19305515/test/testis.html). As you can see, the link works according to the stylesheet when not visited. But when the link is visited, the stylesheet has no effect on the link. Basically, what my problem is all about, is that I want my visited links to be underlined in hover, just like they are when not visited. I hope there is someone who...
11
2660
by: M Kinstlinger | last post by:
How can I assign a hover value and a link value, and maintain them if the link has been visited ? If I set up a visited link, the hover option is overrun - ??
9
4092
by: DM | last post by:
I searched on this topic. Found others who mentioned it, but no solution. I can't seem to get visited links to appear in a different color in Mozilla or Firefox on the PC. It works fine in IE. My CSS is copied below. Any help would be greatly appreciated. Thanks DM
4
3242
by: Matt Stanley | last post by:
I'm experiencing frustration with our site not consistently displaying visited links. We use CSS, and the links on some pages work as intended, but others do not. To see an example of what I'm talking about visit the following page: http://hwcs.com/products/index.asp Click the "20 software products" link, then click back and Refresh the page... the link does not change color. The problem exists in both IE & NS.
11
2735
by: VK | last post by:
a:active { color: #FF0000; text-decoration: underline} /* a:visited color rule has higher priority over a:hover if viewed from your local drive, so visited links will not "hover". To fix this bug (feature?) one should use additional !important instruction: */ a:hover { color: #FF0000 !important; text-decoration: underline} a:link { color: #0000FF; text-decoration: underline} a:visited { color: #800080; ; text-decoration: underline}
8
11255
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to set the color of a visited HyperLinkField (the link text) in a GridView?? Here is the markup of the HyperLinkField I have problems with: <asp:HyperLinkField HeaderText="Subject" Text="Subject" DataTextField="Subject" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Templates/View.aspx?id={0}" HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle" />
3
3858
by: reyo | last post by:
Hi, i design a dynamic web page.infact it will be a css generator. i have a question about visited link. i want to change color,font-size,font-weight etc. of a link when it is visited. when a user change font-size dynamically visited link's font-size will be change. i use dropdown list for font-size values . there are 24 links on the page.links id="a1" a2,a3, so on.. function denemelink(){ var...
3
1533
by: geraldjr30 | last post by:
hi, i managed to reset the $_GET to $_POST passed from previous page, but for some reason when i type in a in the form it resets back to all. i do not want this to happen... can someone look at my code and tell me how to prevent this? <html> <STYLE type="text/css"> TD{font-family:ARIAL;font-size:11px;color:#666666;}
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9453
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10254
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.