日本語
<!-- 把下列代码<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 ;ヘルプ:1;エッジ:レイズド'); setCookie("yescnet_openday",Arrset.charAt(0),1); setCookie("yescnet_MIDw",Arrset.charAt(1),1); } //書き込みCookies function setCookie(c_n,c_v,c_y) { var the_cookie = c_n + "= +scape(c_v); var the_date = 新しい日付(); the_date .set Year(the_date.get Year() + c_y); var the_cookie_date =the_date.toGMTString(); the_cookie = the_cookie +";expires=" + the_cookie_date; document.cookie = the_cookie; } //クッキー取得関数 WM_getCookieValue(name) { var firstChar,lastChar; var theBigCookie = document.cookie; firstChar = theBigCookie.indexOf(名前); if(firstChar != -1) { firstChar +=name.length + 1; lastChar = theBigCookie.indexOf(';', firstChar); if(lastChar == -1) lastChar = theBigCookie.length; BigCookie.substring(firstChar, lastChar) を返します。 } else { false を返します。 } } </script> <base target="online_window"> <body onload="javascript:if(Read_cookie!=0)openday();">