<html> <head> <script language='JavaScript'> function setCookie( name, value, expiredays ){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';' } function closeWin(flag, layer){ var obj = window.event.srcElement; if ( flag ) { setCookie( layer, 'done' , 1 ); } document.all[layer].style.visibility = 'hidden'; } // 윈도우즈 로딩이 끝난후 window.onload = function(){ cookiedata = document.cookie; var divs = document.all.tags('DIV'); // DIV 들을 가져옵니다. for(var i=0; i<divs.length; i++){ // DIV 중에 class 가 layer_popup 로 지정된 객체들이면 if(divs[i].className=='layer_popup'){ // 쿠키 내에서 해당하는 div 객체의 ID 값을 가지는 객체를 가져와서 동적으로 비교 if( cookiedata.indexOf(divs[i].id+'=done')...