function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);
window.open(page, "", windowprops);
} else {
count++;
SetCookie('count', count, exp);
}
}
window.onload=checkCount
</script>
</head>
<body>
</body>
</html>
Tag : - - - -
Date :
27 พ.ย. 2549 13:58:19
By :
nuukwan
View :
1921
Reply :
1
No. 1
Guest
dim strSurvey
strSurvey=Request.Cookies("suvey")
if strSurvey="" then
response.Cookies("suvey")="OK"
response.Cookies("suvey").expires=date+1
'ครั้งแรก
response.redirect "surevey.asp"
else
'ครั้งต่อมา
response.redirect "xxxx.asp"
end if