/    Sign up×
Community /Pin to ProfileBookmark

I wasn’t to sure of where to put this so i put it here.
you know how on a lot of pages if you click on a link it turns a different color. so when you come back to that page on your next visit, you know which links you have clicked on and which you haven’t. Well how do you do the same thing but so that it only lasts for that persons visit, and when you come back to that page the next time, it has returned to its origional color?
any help would be greatly appreciated.?

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@StefanDec 25.2002 — [i]Originally posted by aquaarmourydavi [/i]

Well how do you do the same thing but so that it only lasts for that persons visit, and when you come back to that page the next time, it has returned to its origional color?
[/QUOTE]


The simple answer is that you can't, becuse it's a user setting in their browser.

However theoretically you could cheat by adding random parts to your links I guess.

Alternativly use the same color for both visted and non visited links and use cookies to script another color for links visited this session.

In short, this is probably a lot more work to implement then it's worth.
Copy linkTweet thisAlerts:
@jpmoriartyDec 25.2002 — suggest you take a look [URL=http://forums.webdeveloper.com/showthread.php?s=&threadid=281]here[/URL] , but prepare to be dissapointed... don't think it can be done - maybe you could with flash though?
Copy linkTweet thisAlerts:
@Klyve1Dec 30.2002 — theoretically you could cheat by adding random parts to your links I guess[/QUOTE]

What an excellent idea! This should work but only if the random part lasts for the session otherwise every time the page is loaded it will be 'un-visited'
×

Success!

Help @aquaarmourydavi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...