Computers |
|
| | #1 (permalink) |
| Newb Techie | 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. |
| | |
| | #3 (permalink) |
| Newb Techie | 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! |
| | |
| | #4 (permalink) |
| Master Techie | 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. |
| | |
| | #5 (permalink) |
| Newb Techie Join Date: Jan 2006
Posts: 39
| 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. |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |