473,669 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

visited link...

RAB
When my user closes the browser, I want the visited link to change to a
"fresh" never been visited link once the user (on the same machine)
reopens their browser.

Here is the code I am using:

/* buttons.css */
body { font-family: Verdana, sans-serif;
color: black; background-color: white; }
h1 { color: navy; }
.navbar a:link, .navbar a:visited
{ font: bold 12pt Verdana, sans-serif;
padding: 0.5em; margin: 0.5em;
display: block; text-decoration: none;
background: url("pics\butto n.gif") transparent 50% 50%
no-repeat; }
.navbar a:link { color: yellow; }
.navbar a:visited { color: lime; }
.navbar a:hover, .navbar a:focus
{ background-image: url("pics\butto n_yellow.gif");
color: black; }
.navbar a:hover:visited , .navbar a:focus:visited
{ background-image: url("pics\butto n_green.gif");
color: black; }

How could I do this?

Thanks,
RABMissouri2006

Dec 20 '06 #1
28 2657
RAB wrote:
When my user closes the browser, I want the visited link to change to a
"fresh" never been visited link once the user (on the same machine)
reopens their browser.
It doesn't really matter what you want in this regard. That setting is
in the user's control, as it should be.

--
Berg
Dec 20 '06 #2
RAB
Nice answer...the tone demonstrated a lot of class...

What setting is it?

If I know what setting it is, I may be able to change it
programatically .

Thanks,
RABMissouri

Dec 20 '06 #3
RAB wrote:
Nice answer...the tone demonstrated a lot of class...
Succinct, wasn't it? But very true. (Why do people think a succinct,
concise answer is argumentative?)
What setting is it?
It is the visitors' browsers' history/cache/number of days setting. If
your site is not visited within that number of days, your link will show
as visited.
If I know what setting it is, I may be able to change it
programatically .
Not very likely; you can't program my browser settings. Save your
breath.

And finally: "Welcome to Usenet!" <lol>

--
-bts
-Motorcycles defy gravity; cars just suck
Dec 20 '06 #4
Beauregard T. Shagnasty replied to hisself:
If your site is not visited
If your site is visited... got a not where there is not one desired.
<g>
--
-bts
-Motorcycles defy gravity; cars just suck
Dec 20 '06 #5
usenet = answering questions with snooty nonsense?

A better answer might be to look into adding some dynamic identifier to
your links with a scripting language? Or utililizing some sort of
session setting/ criteria.

i.e,

<pre>
<a href="./index.htmlexamp le 1 </a>
<br />
<a href="./index.html?123e xample 2 </a>
</pre>

Both links will load the same page- index.html. Both will appear as
unvisited on each load IF the numbers within the '?123' are randomly
created on page load say with javascript or php. The "page load" may be
an issue for you- so you may need to look into something like sessions
in php if it is important enough to your needs.

Hope that helps. If so, you can celebrate accomplishing the
'impossible'...

Now somebody can reply with: "You ignorant #@$$%- I said it was
impossible and I meant that...." "because this is CSS and you advised
PHP..." "bla blah blah".

P.S Op visit a php or javascript group for some help for this if you
still need it...

Dec 21 '06 #6
Scripsit sp************* *@comcast.net:
usenet = answering questions with snooty nonsense?
You seem to wish to contribute to such developments. Posting anonymously
with a forged or forged-looking address is a good start. Not quoting or
paraphrasing when responding to something is a usual sign of cluelessness or
arrogance and fits into the plan.
A better answer might be to look into adding some dynamic identifier
to your links with a scripting language? Or utililizing some sort of
session setting/ criteria.
You can always create _new_ links on each visit to a page. This, however,
has nothing to do with CSS, and the OP requested a CSS solution by the
choice of posting to this group.

Besides, it does not make "the visited link to change to a 'fresh' never
been visited link" as requested. Au contraire, it implies that the link will
not be seen ever more. Of course it could point to the same address, just as
links named "foo" and "bar" may.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Dec 21 '06 #7
RAB wrote:
When my user closes the browser, I want the visited link to change to a
"fresh" never been visited link once the user (on the same machine)
reopens their browser.
Or you could set the visited color the same as the link color. That way,
for your site, all links look the same regardless of visited-ness.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Dec 21 '06 #8
Jim Moe wrote:
RAB wrote:
>When my user closes the browser, I want the visited link to change to a
"fresh" never been visited link once the user (on the same machine)
reopens their browser.
Or you could set the visited color the same as the link color. That way,
for your site, all links look the same regardless of visited-ness.
Unless, of course, the user's browser is set to over-ride those settings.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
Deja Moo: The feeling that you've heard this bull before.
Dec 21 '06 #9
>(some random thought process of some unnamed individual)
>>GASP- Someone didn't agree 100% with a fellow postaholic of mine- and expressed the >>opinion that responses were "snooty". I'll Show you....
I don't really wish to contribute to such developments- its unavoidable
due to the intellectual age of the discussion police who live here.

Perhaps you should be more diligent in communicating your address
requirements- I'd bet most of us didn't know they couldn't appear
forged or be anonymous! Hail the king.

How did you guess what I was referring to without the quotes? Or for
that matter why did you feel a need to respond exactly as predicted?

Clueless? Arrogant? Yeah, well your daddy is an alcoholic and your
mother is on welfare. I'm sure that was all very helpful to everyone.

I'm not saying you have sticks up your a$$es. Or telling you to get a
life. But maybe you could look up "snooty" and search your responses to
see if they could remotely be misconstrued as such. If it is
intentional, then more power- if you didn't realize- or if you disagree
then so be it. I could be wrong.

At least the OP can have his links appear as he wanted. I sent the
session example to you that takes care of the "reloaded page" issue.
Let me know if you have any problems.

P.S Prediction: I won't be reading the follow ups ("You top posting
sob..") (" Usenet etiquette dictates") ("Blah bla blech") as the
problem is solved thanks to all the great input from everyone. Its nice
to participate in an intellectual exchange where adults provide
friendly advice without taking it personally and lashing out if someone
has a different point of view or idea.


Jukka K. Korpela wrote:
Scripsit sp************* *@comcast.net:
usenet = answering questions with snooty nonsense?

You seem to wish to contribute to such developments. Posting anonymously
with a forged or forged-looking address is a good start. Not quoting or
paraphrasing when responding to something is a usual sign of cluelessness or
arrogance and fits into the plan.
A better answer might be to look into adding some dynamic identifier
to your links with a scripting language? Or utililizing some sort of
session setting/ criteria.

You can always create _new_ links on each visit to a page. This, however,
has nothing to do with CSS, and the OP requested a CSS solution by the
choice of posting to this group.

Besides, it does not make "the visited link to change to a 'fresh' never
been visited link" as requested. Au contraire, it implies that the link will
not be seen ever more. Of course it could point to the same address, just as
links named "foo" and "bar" may.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Dec 21 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
17076
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
3867
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...
18
10736
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...
6
1470
by: - jes | last post by:
Greetings. Using CSS, a programmer can set the color for an href link and a different color for a VISITED href link. Anyone know where this "list" of visited links is stored? Is it accessible (can I read it) with ASP? Is it updateable (can I add new links to the list) with ASP?
2
5049
by: joeandtel | last post by:
Is there a way to check if a link has been visited using JavaScript? I have a table of data and the front of each row has a link to another page. Of course the browser knows if a link has been visited and changes the color of the link, but I would like to change the background of each row that has been visited. Is there a way to read the visited status of a link using JavaScript?
5
1924
by: ~greg | last post by:
I have links on an index page like this: <a href="link" onclick="DoOnClick('link')"> page title </a> -where the DoOnClick("link") just adds a query part to the url before executing: location.href = "link?query"; ( this is done in order to maintain certain state information
11
2728
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
11250
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
4889
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:
1
4106
beacon
by: beacon | last post by:
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...
0
8466
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
8384
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
8896
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...
0
8810
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8659
tracyyun
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...
0
7410
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5683
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();...
2
2035
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1790
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.