|
These 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.
Script Title: Address
Book
Contributor: Joe Norman
(joe@wdrealty.com)
Contributor URL: http://www.jacksonville.net/~joman/ArraysNCookies.html
Details: 6.01 KB * Uploaded June 6 2000
Script Description: Saves an address book database as a
cookie on the user's computer. The author explains that although
the actual example may not be particularly useful, the underlying
code could be very beneficial for use in other projects.
 [
Get
Source Code ]
Script 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
Script 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 ]
Script Title: Favorite
Background
Details: 2.55 KB * Uploaded June 30 1997
Script Description: Let a JavaScript cookie remember your
favorite background color. On future visits, it automatically
displays that background color for you.
 [
Get
Source Code ]
Script Title: Cookie
Redirect
Contributor: Ronnie T. Moore, Editor
Contributor URL: JavaScript
Source Code 2002
Details: 2.91 KB * Uploaded May 11 2000
Script 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 ]
Script Title: ID
Tracker
Contributor: Ronnie T. Moore, Editor
Contributor URL: JavaScript
Source Code 2002
Details: 2.53 KB * Uploaded May 19 2000
Script 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 ]
Script Title: User
Name
Details: 3.19 KB * Uploaded July 1 1997
Script 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 ]
Script Title: Number
Of Visits
Details: 2.31 KB * Uploaded July 1 1997
Script 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 ]
Script Title: Name
- Browser Info
Details: 2.75 KB * Uploaded June 30 1997
Script Description: This cookies records the visitor's
name and also writes the visitor's browser information to the
screen.
 [
Get
Source Code ]
Script Title: Name
- Visits - Last Visit
Details: 3.42 KB * Uploaded June 30 1997
Script Description: This cookies records the visitor's
name, how many visits, and the last visit.
 [
Get
Source Code ]
Script Title: Name
- Visits - Message
Details: 3.32 KB * Uploaded June 30 1997
Script 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 ]
Script Title: Only
Popup Once
Details: 2.58 KB * Uploaded September 3 1999
Script 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 ]
|