Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 07-28-2008, 02:11 PM   #1 (permalink)
Newb Techie
 
Join Date: Mar 2005
Posts: 39
Send a message via AIM to decrypted
Default CSS Visited Links Problem

Hey,
I am doing a website and have come to a dilemma with the CSS code, mainly the visited links. I want the links to remain in the visited state until the user comes back to the site later. Basically, I want the user to be able to keep up with what he/she has looked at during their current view of the site only. As of now, everytime I bring up the page the links are in the visited state since I have been to every page previously.
Thanx ahead of time! Will happily answer questions.
decrypted is offline   Reply With Quote
Old 07-28-2008, 07:13 PM   #2 (permalink)
Master Techie
 
CrazeD's Avatar
 
Join Date: Feb 2006
Location: Maine
Posts: 2,886
Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: CSS Visited Links Problem

This has to do with browser cache and history. I don't believe you can do anything with CSS.

Maybe with Javascript though.
__________________

Need website help? PM me!

Join Tech-Forums Gaming Party (WAN)!
CrazeD is offline   Reply With Quote
Old 08-06-2008, 05:00 PM   #3 (permalink)
Newb Techie
 
Join Date: Mar 2005
Posts: 39
Send a message via AIM to decrypted
Default Re: CSS Visited Links Problem

thanx for the info. i searched for javascript solutions and couldn't find anything that worked. could you please give me the correct code and directions to putting it in the html or point me to a detailed site that can tell me what to do. thanx ahead of time!
decrypted is offline   Reply With Quote
Old 08-06-2008, 09:49 PM   #4 (permalink)
Master Techie
 
CrazeD's Avatar
 
Join Date: Feb 2006
Location: Maine
Posts: 2,886
Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: CSS Visited Links Problem

I'm not overly hot with Javascript, so I can't right the code for you.

I would imagine you'd want a cookie that expired at the end of the session (when the browser is closed) that will save the link color.

Can't help more than that, sorry.
__________________

Need website help? PM me!

Join Tech-Forums Gaming Party (WAN)!
CrazeD is offline   Reply With Quote
Old 08-27-2008, 04:09 PM   #5 (permalink)
Newb Techie
 
Join Date: Jan 2006
Posts: 39
Default Re: CSS Visited Links Problem

I think an easier way to do this would be to set all of the links to the same color. Then use Javascript and cookies to change the links that the user clicked on to a different color and have all of those links stored in a cookie that expires after the browser session, or a few minutes. Then everytime a user accesses the site, have Javascript check for that cookie, and if it's there, have it change the link(s) color. Agreed?

I'm not proficient in Javascript, so I can't help you write it unless you have a very specific question.
smartydebater is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grand Theft Auto problem bmxfreakrider PC Gaming 0 01-13-2008 03:03 PM
Problem with 3D graphics mordi05 Windows Operating Systems and Software 6 12-10-2007 11:37 PM
Wireless Problem! dropper Computer Networking & Internet Access 3 07-08-2007 04:58 PM
Audio Problem.... sab3156 Hardware Troubleshooting 6 06-22-2007 10:53 PM
Virus Writers Taint Google Ad Links Osiris Virus - Spyware Protection / Detection 0 04-26-2007 08:38 PM


All times are GMT -5. The time now is 07:51 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0