>
|
|
Home Cookie Scripts IndexThese scripts all use JavaScript Cookies. Cookies are small bits of information such as a name, a date, an order, etc. Web pages can set cookies on a user's system and later retrieve them. They are becoming increasingly common in personal web pages to track repeat visits. These are the most difficult scripts to write - just look at the code. General questions about cookie scripts here should be posted to The JavaScript Forum. More on internet.com
Title: Address Book [ Get Source Code ] Title: Bookmark Reminder Contributor: Dan Kirkpatrick (webmaster@troop321.org) Contributor URL: http://www.troop-321.8m.com/html Details: 2.75 KB * Uploaded June 22 2000 Description: (Best with Internet Explorer) Pops up the "Add to Favorites" bookmark window once a week, or after every certain number of days. Netscape users are given an alert message to remind them to bookmark the site. [ Get Source Code ]
Title: Cookie Enabled [ Get Source Code ] Title: Cookie Redirect Contributor: Ronnie T. Moore Contributor URL: The JavaScript Source Details: 2.91 KB * Uploaded May 11 2000 Description: Redirects the visitor to different pages based on the value of a stored cookie. If no cookie is found, the available items are displayed for the user to pick from, which sets a cookie for their next visit. Our demonstration uses a 'favorite animal' cookie, but this could easily be modified to fit your needs. [ Get Source Code ] Title: Favorite Background Details: 2.55 KB * Uploaded June 30 1997 Description: Let a JavaScript cookie remember your favorite background color. On future visits, it automatically displays that background color for you. [ Get Source Code ] Title: ID Tracker Contributor: Ronnie T. Moore Contributor URL: The JavaScript Source Details: 2.53 KB * Uploaded May 19 2000 Description: Allows you to save a visitor's referral ID in a cookie ID on their computer. Then, you can you can access that ID cookie from the rest of your site. Useful to help you pay affiliate commissions or track web site referrals. Easy! [ Get Source Code ] Title: Name - Browser Info Details: 2.75 KB * Uploaded June 30 1997 Description: This cookies records the visitor's name and also writes the visitor's browser information to the screen. [ Get Source Code ] Title: Name - Visits - Last Visit Details: 3.42 KB * Uploaded June 30 1997 Description: This cookies records the visitor's name, how many visits, and the last visit. [ Get Source Code ] Title: Name - Visits - Message Details: 3.32 KB * Uploaded June 30 1997 Description: This cookie records the visitor's name, how many visits, and displays a message depending on how many visits have been recorded. [ Get Source Code ]
Title: New to You [ Get Source Code ] Title: Number Of Visits Details: 2.31 KB * Uploaded July 1 1997 Description: This cookies records how many times the visitor has visited the page and writes to the page accordingly. (ie: You have been here 2 times). [ Get Source Code ] Title: Only Popup Once Details: 2.58 KB * Uploaded September 3 1999 Description: If you have a new window open up on your home page, it opens every time your visitors come back to that page. This is rude as well as very annoying thing to force onto your visitors. But, using cookies, this script can determine if the visitor has been here before, and only open a new window on their first visit to the page. The next time they come back, the script will read the cookie, identify them as a repeat visitor, and NOT open the window again. Neat! [ Get Source Code ] Title: Remove Ads Contributor: Adremover (adremover@portalen.no) Contributor URL: http://adremover.vr9.com/ Details: 2.97 KB * Uploaded June 15 2001 Description: Catches all clicks on ads and writes a cookie on the visitor's computer. Until the cookie expires, no ads are shown. Cool! [ Get Source Code ] Title: To Do List Contributor: Pete Thompson (thompp@globalnet.co.uk) Contributor URL: http://www.users.globalnet.co.uk/~thompp Details: 4.05 KB * Uploaded May 10 2001 Description: Keep your To Do list up to date with this script. Demonstrates how to display, add and delete items from a list of cookies. [ Get Source Code ] Title: User Name Details: 3.19 KB * Uploaded July 1 1997 Description: Cookies allow web pages to store information on the visitors computer and to later retrieve that information. This cookie records the visitor's name. [ Get Source Code ]
|
Sign up for the Javascript Weekly Newsletters! |
[ Contact Us! ]
[ JavaScript Forum ] [ Submit Your Script! ] |
Featured Gartner Webcasts from the Symantec Resource Center | |||
ON-DEMAND WEBCAST : Overcoming Today's Client Management Issues |
ON-DEMAND WEBCAST : Helping Ensure a Secure Computing Environment Using Effective Patch |
ON-DEMAND WEBCAST : Protecting the Integrity and Availability of your Company's Information |
ON-DEMAND WEBCAST : Getting a Handle on IT Assets |