谁有访问网页代码啊?

来源:百度知道 编辑:UC知道 时间:2024/05/11 03:13:11
本人现在在学习做网页,我想在网页中加一个代码 就是记录 “你是第几个访问本站” 的代码。谁有的话就发个家我啊 ,我在这先谢谢了!

<!--将以下代码加入HTML的<Body></Body>之间-->

<SCRIPT language=JavaScript>
<!--
var caution = false
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
if (!caution || (name + "=" + escape(value)).length <= 4000)
document.cookie = curCookie
else
if (confirm("Cookie exceeds 4KB and will be cut!"))
document.cookie = curCookie
}
function getCookie(name) {
var prefix = name + "="
v