This playscript sets a cookie, with an alert window that only comes up the first time you visit the page each day. A funny effectfor calling attention to daily specials and news updates. Very easy to configure for working in other ways also.
The JavaScript Cookies provide a complete set of cookie functions. Designed for usability, they make all the details, like setting expiration dates, easy and fast. JavaScript functions makeCookie(), readCookie(), and rmCookie() provide the best solution for writing, reading, and removing cookies. Any JavaScript application now has the capability to access cookies and utilize all of their magical properties. The cookie functions provide high performance, and each one provides return values precisely indicating the success or failure of the requested operation. They allow you to use relative expiration dates, to easily let a cookie expire in a few seconds, hours, days, or years from the present time, or to create a 'session cookie' that safely vanishes when the user quits the browser. The cookie functions also allow you to choose the domain and path for cookies, or to create secure cookies that are accessible only through encrypted pages.
This script remembers the value entered into any form textbox (<input type='text') by the visitor, and upon his/her return, preloads the textbox with that value. It's very useful for forms that get used repeatedly by the same visitors and contain the same values each time, such as the 'name' or 'email' field of a 'Recommend Site' form or blog comments form. Just as useful is this script's ease of installation- specify a form textbox value to be retained just by giving it a class='memorize' attribute.


Vietnamese














