• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. JavaScript And Cookies > Displaying "New to You" Messages

Displaying "New to You" Messages

You can use cookies and JavaScript to alert frequent visitors to your site to items that are new to them. This gives the user a more personalized experience when they visit your site, making it a smarter and friendlier place. Script 10.7 adds a little "New!" image to the end of lines when the cookie says that that line has been added since the last time the visitor was there. Again, you'll see familiar code from previous examples in this chapter.

Script 10.7. This script can help you personalize your site by alerting the user to new content.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint