www.gusucode.com > CC校友录贴吧 CCBar源码程序asp编程 > images/new/popup.js
function notice_getCookie( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } if ( notice_getCookie( "popup" ) != "done" ) { // window.open('http://www.brainwork.co.kr/popup/2004_year.html','','width=410,height=465'); }