<html>
<body>
<SCRIPT language="JavaScript">
visit_times=get_cookie("Java-Da!");
if (visit_times=="") {
visit_times=1;
}
document.write(visit_times+"回目のご訪問ありがとうございます。");
visit_times++;
set_cookie("Java-Da!",visit_times);
function get_cookie(key_wrd){
ckie_word=document.cookie+";";
ckie_word1=ckie_word.indexOf(key_wrd, 0);
if(ckie_word1!=-1){
ckie_word=ckie_word.substring(ckie_word1,ckie_word.length);
start=ckie_word.indexOf("=",0)+1;
end=ckie_word.indexOf(";",start);
return(unescape(ckie_word.substring(start,end)));
}
return("");
}
function set_cookie(key_wrd,val) {
ckie_word=key_wrd+"="+escape(val)+";";
ckie_word+="expires=Sat, 31-Dec-2020 23:59:59; ";
document.cookie=ckie_word;
}
</SCRIPT>
</body>
</html>
|