高手救急呀!
大哥呀,我是做asp的,我对于javascript不是很精通的,请不吝赐教了!
状态栏总显示网页有错误!
var coki, cur, future;
cur=3501;future=cur+1;coki=getCookie("wwwqqwmcomsing");if (coki==-1) setCookie("wwwqqwmcomsing",future);else { if (coki<=cur) { playSound(); setCookie("wwwqqwmcomsing",future); }}function playSound() { document.all.qqwmfbsingsrc.src="football.wav";}function setCookie(name, value, expire) { document.cookie = name + "=" + escape(value)+ ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));}function getCookie(Name) { var search = Name + "="; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(offset, end)); } else return -1; } else return -1;}
这段代码与第二段代码在写cookies的时间有冲突,高手帮忙看一下啦!
不胜感激呀!
function chang(){
if(!(document.cookie.indexOf("show")>=0)){ //判断cookie中是否有show字串
setTimeout("jiantou.style.display='none'",10000) //没有就1秒后隐藏图片
document.cookie="show"; //向cookie中写show字串
}
else{
jiantou.style.display='none'; //有show字串就直接隐藏掉图片
}
}
问题点数:0、回复次数:0Top




