This small javascript allows you to set a cookie on your visitors computer. If the cookie still exists the next time they visit, they are redirected to the page of your choice. Ideal for redirecting visitors who have already seen you (long) flash intro or your popup windows. Tested on Mac and PC in Netscape, Opera and IE. Simply copy the following JavaScript to your document. There are two variables you can set. These are go_to, which is the URL your visitor should be redirected to, and num_days which is the number of days the cookie should remain on your visitor's computer. Once the cookie has expired, the process begins again. That is, the next time the visitor hits the page, the cookie is set and waits for the visitor's next hit. |