Posted 20 June 2006 - 07:35 PM
Posted 20 June 2006 - 09:46 PM
Posted 21 June 2006 - 03:18 AM
Posted 21 June 2006 - 11:00 AM
That variable stores the last location the user come from.
Posted 21 June 2006 - 06:23 PM
Basically, I have a list of links to external sites. If the user clicks on a link and then refreshes the page, I want to display an image next to that link that says they have visited it.
I know you can do this in CSS with :visited but I need to apply it to something besides an anchor.
Hope this explains it better.
Posted 21 June 2006 - 06:31 PM
Posted 21 June 2006 - 08:12 PM
You would need a way to track users, that is either through a cookie or through a database. Once that is decided then you can simply create an array in the cookie with the links visited and when the page is loaded it checks that array and adds anchors accordingly. Otherwise if you want to use a database you would have it query for a user and links visited then act accordingly after that. I think both have their advantages; the cookie method is much much easier but also can be undone by deleting cookies. The user method is more complicated but also more permanent.
I was hoping there would be an easier way to do that, like a function but I guess that's the only way.
Thanks for the solution!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users