Cookie


 訪問回数カウンター あなたがこのページを訪れたのは、今回で  回目です。


<SCRIPT LANGUAGE="JavaScript">
<!--
var g_times_value;
var g_name = "rim";
function setCookie(p_name,p_value,p_expires,p_path,p_domain,p_secure){
	var v_text = "";
	v_text = p_name + "=" + escape(p_value);
	if (p_expires){v_text = v_text + "; expires=" + p_expires.toGMTString();}
	if (p_path){v_text = v_text + "; path=" + p_path;}
	if (p_domain){v_text = v_text + "; domain=" + p_domain;}
	if (p_secure){v_text = v_text + ";" + p_secure;}
	document.cookie = v_text;
}
function getCookie(p_name) {
	if (document.cookie){
		index = document.cookie.indexOf(p_name, 0);
		if (index != -1) {
			val_start = (document.cookie.indexOf("=", index) + 1);
			val_end = document.cookie.indexOf(";", index);
			if (val_end == -1){
				val_end = document.cookie.length;
			}
			return(unescape(document.cookie.substring(val_start, val_end)));
		}
	}
	return(null);
}
function updateTimes(){
	var p_expires = new Date();
	p_value = g_times_value;
	p_expires.setTime(p_expires.getTime() + (6 * 30 * 24 * 60 * 60 * 1000));
	// 6 months from now
	p_path = '/';
	p_domain = null;
	p_secure = false;
	setCookie(g_name,p_value,p_expires,p_path,p_domain,p_secure);
}
function getTimes() {
	g_times_value = getCookie(g_name);
	if (g_times_value == null) {
		g_times_value = 0;
	}
	g_times_value = eval(g_times_value) + 1;
	return(g_times_value);
}

// -->
</SCRIPT>

BACK>>