高手帮我改一下下面的代码,当第一次运行时不要跳出警告框,当按了浏览器的刷新健是才弹出,解决马上给分,在线等!
<HEAD>
<SCRIPT LANGUAGE= "JavaScript ">
<!-- Begin
var expDays = 1; // number of days the cookie should last
function GetCookie (name) {
var arg = name + "= ";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf( " ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;