download:
http://zpcity.com/arli\forums\inc\c_script/global.jsseeof:function SetCookie (name, value) {....

解决方案 »

  1.   


    function setCookie (name, value, expires) {  document.cookie = name + "=" + escape(value) +
        "; expires=" + expires.toGMTString() +  "; path=/";
    }function getCookie(name) {  var search;  search = name + "="
      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 "";
    }function deleteCookie(name) {  var expdate = new Date();
      expdate.setTime(expdate.getTime() - (86400 * 1000 * 1));
      setCookie(name, "", expdate);
    }看不懂在问我!