---------------------------ad.js-的代码如下:---------------------------------
functionsetCookie(name,value,expire){
window.document.cookie=name+"="+escape(value)+((expire==null)?"":(";expires="+expire.toGMTString()));
}
functiongetCookie(Name){
varsearch=Name+"=";
if(window.document.cookie.length0){//ifthereareanycookies
offset=window.document.cookie.indexOf(search);
if(offset!=-1){//ifcookieexists
offset+=search.length; //setindexofbeginningofvalue
end=window.document.cookie.indexOf(";",offset) /...[ 查看全文 ]