lilaznclucle
09-01-2003, 06:37 PM
Um i want to know if any one can give me a script to redirect a person to somewhere using cookies. so each time they visit my site it goes some where different...i have seen the scripts that redirect you to one location using a cookie. So basically im asking if the visitor has gone to point "a" redirect to point "b" and if gone to "b" then go to "c" and so on... Thank you :D
zachzach
09-12-2003, 06:35 PM
umm you know the universal cookie functions, dont you
if you do, heres the script:
<script language=javascript>
if(GetCookie("A")==null) {
SetCookie("A", "VISITED")
document.location="PAGE_A.htm"
}
if(GetCookie("A")=="VISITED" && GetCookie("B")==null) {
SetCookie("B", "VISITED")
document.location="PAGE_B.htm"
}
if(GetCookie("A")=="VISITED" && GetCookie("B")=="VISITED" && GetCookie("C")==null) {
SetCookie("C", "VISITED")
document.location="PAGE_C.htm"
}
</script>
and so on....
and if you dont know the universal cookie functions, look in javascript.internet.com and then go to cookies and youll find um.
hope thats what you wanted
zach
lilaznclucle
09-13-2003, 02:13 PM
thanks thats exactly wat i wanted