Hi,
I'm encountering a problem with IE 7 that my visited links do not keep their colors changed when they are revisited. i.e, when I reload the page, the links should change their colors so that I know I had visited them before. My code works fine for IE 6. But doesn't work for IE 7.
I have put the style tag as follows in the start of my JSP -
<style type="text/css">
-
a:visited { text-decoration: none;
-
color: rgb(148, 148, 148);}
-
a:hover {text-decoration: none;
-
color: rgb(148, 148, 148);}
-
</style>
Also my JSP includes other JSPs and HTMLs as well.
Please advice!
9 8617
Hi,
It can be set by using the the tag a:visited. have a piece of code from following link http://www.hscripts.com/tutorials/css/link-styles.php
This will help you to show the difference between visited and non visited links.
Gemguy
I have already done this, but the problem is the visited links show up as if they are unvisited the next time the page reloads..
hope this make sense to understand my query.
epots9 1,351
Recognized Expert Top Contributor
are your link dynamic?
yes, they are created on the fly..
the thing is, the visited links appeared to be visited as long as I was using IE 6, even if i reloaded the page. But not so in IE 7 :(
pbmods 5,821
Recognized Expert Expert
Heya, momee80. Welcome to TSDN!
Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.
I'm going to go ahead and move this thread to the HTML/CSS forum, where one of our resident Experts will be more likely to be able to help you out.
Heya, momee80. Welcome to TSDN!
Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.
I'm going to go ahead and move this thread to the HTML/CSS forum, where one of our resident Experts will be more likely to be able to help you out.
Thanks mod..
please have me the solution of my problem
i'll be greatly grateful.
Check your history. Are you sure you don't have it set to zero?
Check your history. Are you sure you don't have it set to zero?
My browser's history settings are to keep history for last 20 days..
your history file has become corrupted...... ...
close all instances of IE........goto internet options in control panel..........
delete history........
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
by: Jan Tuxen |
last post by:
Jakob Nielsen in his most recent Alertbox
(http://www.useit.com/alertbox/20040503.html) tells web authors to
change the color of visited links.
I agree to his purpose: Help users understand where they have been. I
also agree to the background: Too many web authors keep uniform link
colors or their pages, thereby confusing the users.
What I have a hard time agreeing to is his conclusion that web authors
should deliberately change the...
|
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
|
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.
|
by: PsyBorg |
last post by:
This is not entirely a PHP question although it is based in PHP.
I have been creating a site, where I want the visitors to see the visited links as "Crossed Out" using CSS. However, I also want this effect to disappear after about 18 hours, so I used a PHP cookie to read when the last time the user visited the site was, and change the CSS so that the "visited" links had the same "Style" as the regular links. This seemed to work, however...
| |
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" />
|
by: friday13 |
last post by:
Hi,
I would like to set the link's "visited" pseudo-class with javascript
without clicking on the link. My goal is to update the link's color
(previously set in the CSS file) to be "visited" without actually
clicking on the link and then clicking "back" in the browser.
Does anyone know how? Here are the following things I've already
tried to no avail:
|
by: jkizmannRU09 |
last post by:
I know how to adjust the look of visited links with a CSS stylesheet, but how would one create individual variations among a set of links?
For example, say I have three links, all initially looking the same. After clicking, I want the first to change to red, the second to be blue, the third to be green.
Changing the color seems to be easiest, but if possible, I'd also like the visited links to vary by size, font, and maybe decoration...
|
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...
|
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...
|
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...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |