Русский
<!-- 把下列代码加到<body>区域中 --> <script Language="JavaScript"> function WM_readCookie(name) { if(document.cookie == '') return false; иначе верните unescape(WM_getCookieValue(name)); } var Read_cookie=WM_readCookie("yescnet_openday"); function openday() { Arrset=window.showModalDialog('http://www.knowsky.com/img/200407082.htm','好吗','dialogWidth:435px;dialogHeight:297px;scroll:0;status:0 ;help:1;edge:поднятый'); setCookie("yescnet_openday",Arrset.charAt(0),1); setCookie("yescnet_MIDw",Arrset.charAt(1),1); } // функция cookie-файлов setCookie(c_n,c_v,c_y) { var the_cookie = c_n + "=" + escape(c_v); вар the_date = новая дата (); the_date .setYear(the_date.getYear() + c_y); вар the_cookie_date =the_date.toGMTString(); the_cookie = the_cookie +";expires=" + the_cookie_date; document.cookie = the_cookie; } //Передача файлов cookie function WM_getCookieValue(name) { var firstChar,lastChar; вар theBigCookie = document.cookie; firstChar = theBigCookie.indexOf(имя); if(firstChar != -1) { firstChar +=name.length + 1; LastChar = theBigCookie.indexOf(';', firstChar); если (lastChar == -1) LastChar = theBigCookie.length; вернуть theBigCookie.substring(firstChar, LastChar); } Еще {вернуть ложь; } } </script> <base target="online_window"> <body onload="javascript:if(Read_cookie!=0)openday();">