Showing user an image dynamically for a day?
Posted on 2004-08-10
I wanted to see if someone can help with this issue.
I wanted to add this small feature for our site. Basically when a user creates a new document in our web based app, we show the user a list of the documents associated with their account in a nice html table. Their documents are listed as hyperlinks.
I want to display a simple image on my page that has the words "new" on it next to the hyperlink if the document was created "today". So for the whole day the user would see the *New* image next to the hyperlink.
The next day when the user logs in, the new image would be gone as it would be the next day.
How can I accomplish this? Does it involve client variables or would it be done through a cookie? If user does not accept cookies, what alternatives are there? It is my understanding that client variables compare the information from a db or a registry to a cookie on the users machine so if the user does not have cookies enabled, what does the client var in our db compare itself to???