Indonesia
<!-- 把下列代码加到<body>区域中 --> <script bahasa="JavaScript"> function WM_readCookie(nama) { if(document.cookie == '') return false; jika tidak, kembalikan unescape(WM_getCookieValue(nama)); } 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 ;bantuan:1;tepi:terangkat'); setCookie("yescnet_openday",Arrset.charAt(0),1); setCookie("yescnet_MIDw",Arrset.charAt(1),1); } //写入fungsi cookie setCookie(c_n,c_v,c_y) { var the_cookie = c_n + "=" + escape(c_v); var the_date = Tanggal baru(); the_date .setYear(the_date.getYear() + c_y); var tanggal_cookie_=tanggal_tanggal.toGMTString(); the_cookie = the_cookie +";expires=" + the_cookie_date; dokumen.cookie =the_cookie; } //读取fungsi cookie WM_getCookieValue(nama) { var firstChar,lastChar; var theBigCookie = dokumen.cookie; firstChar = theBigCookie.indexOf(nama); if(firstChar != -1) { firstChar +=nama.panjang + 1; lastChar = theBigCookie.indexOf(';', firstChar); if(lastChar == -1) lastChar = theBigCookie.length; kembalikan BigCookie.substring(firstChar, lastChar); } else { kembali salah; } } </script> <base target="online_window"> <body onload="javascript:if(Read_cookie!=0)openday();">