I have a couple of divs on the site. I'd like to have the new items highlighted since the last visit.
I don't want to use php and mySQL for this, because: - i don't want to store every users last visit info in the database - i want this to work with non registered/non logged in users too - the main content is cached, so i can't output different content to different users.
I think this leaves me one solution: cookies + javascript: - check if cookie exists - if yes highlight new items (example add a class to the div) - update cookie
So, how can I do this?
The divs are currently using the same class, and they have no id, so if needed I can put there the date of the div, or the primary ID of the item.