Go do some homework, guy. Nobody's going to write your code for your assignment. Search on "Javascript cookies" and you'll find thousands of examples of how they work. Obviously, you'll need to know how to read and write cookies. Similar searches will show you how to find the date, time, and user's IP address. Once you have the basic tools, think out what needs to be done to track the visits. Write out the steps required in plain text. The code will flow naturally once you figure out what needs to be done and combine that with the cookie code you learn.
Rick Trethewey
Rainbo Design
Bookmarks