How do I show visited link color as it was not visited on each visit to page?
Hi.
How do I show visited link color as it was not visited on each visit to page?
Each time someone visits the page I want all the links not to show up in the visited color (state).
But I still want the visited color to show up (the normal way) if the user right click the link and open the URL in a new page.
If user now click on the page where he came from again then I want the visited colors to be in visited color.
Most browsers, like mine, remembers which links I have visited. I have to reset visted links if I wish, but other user's may have to clear their cache of all your site pages to get them restored to "pristine" colors.
It is quite simple... (my question might not have been )
I try again.
Let say you have visited a page earler which have a lots of links.
If you have visited any of these links earlier then those visited links normally should show in the Visited link color.
What I wanted was that If I open that page again laiter on... then I would not like to see the visited links in using the Visited color, but just the color as if I had not visited those links earlier.
But If I right-clicked a link to open link URL in new window then my clicked link should show in visited color when I look at (not reopen) the page with those links again.
Hope that clarified it.....
Anyway... I have solved it.
If I want to do what I want for each refresh (reopen) of that page I could just add a timestamp somewhere in the URL like this: (simplified but you get the picture)
$tsTime = time();
... href=\"scriptname.php?ts=$tsTme\" ...
or to make the visited color last for the whole session then I could do like this:
$tsTime = session_id();
... href=\"scriptname.php?ts=$tsTme\" ...
I would be interested to see if my browser would show the links as you have set up as I control what it does to a certain extent. I control the cookies, the Java, the JavaScript, the illegal redirects some sites try to make it do and more.
If you are thinking about testing my page in your browser.....
Not possible... It is a closed web application for a customer of mine.
But should be quite easy for you to make a page and test it.
But requires that you use some kind of scripting language on the server in order to create the ts on each of the links though....
That seems like a lot of hassle and messy urls when you could just use a tiny bit of JS to change the colour of a link onclick. May not be an issue for you as its a closed app but your approach is very search engine unfiendly.
Because I control what my browser does, not a web site.
Then maybe you should test it then before you claim it would not work on your browser..... If a unique URL shows up each time, then I wonder how on earth could you possibly make your browser remember visited URL's ????
Bookmarks