Source Code Online Home Categories Top Code New Code Submit Code
Search
Subject Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Visual Basic & VB.NET
 XML
New Code
phpFastNews 1.0
Ticket Support Script 1.1
Video Search Script Pro 1.0
Buymyscripts Recipe script 2
i-Net B2B Portal Script 1.4
Shop a la Cart E-Commerce 1.5.5
SmartJobBoard - Job Board Software 1.0
dbForge Fusion for MySQL, Delphi Add-in 3.00
Rapid CSS Editor 2008 9.1
i-Net Real Estate Portal 1.0
Kentico CMS for ASP.NET 3.1a
iNet job search engine script 1.4
XMBForum 1.9.10 Karl
3D Image Carousel Menu - Engine 1.0
Aston2 Menu 1.2
Top Code
Adirex 3D Chess Client 1.0
JiLMaiL 2.0
JVMail 2.0.0
P2P .htManager 0.2
Smart Font Listbox 1.0
Time and Attendance 1.0
Arbitrary-shape Popup Box 1.0
CSTreeBean 0.3
encbtn32.zip 1.00.00b
Joomla! 1.5
Libstocks 0.5.0
phpTimeSheet 1.3.0-preview 2
PicStrip
Webstores 2000 Portal 6.0
activeWatermark 1.0
Report About Redirection Cookie -
- required fields

Please enter text on the image

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.

Back