<div> </div> <div>안녕하세요. </div> <div>홈페이지 팝업창 관련해서 문의 드립니다. </div> <div>팝업창은 레이어를 이용해서 만들어졌구요. </div> <div>이 팝업창이 인터넷이나 브라우저 버전에 따라서 뜰 수도 있고 안 뜰 수도 있나요? ㅠㅠ</div> <div> </div> <div>아래는 팝업창 소스입니다. ㅠㅠ </div> <div> <br> <div id='divpop11' class='layer_popup' style='position: absolute; left:700px; top: 220px; z-index: 1000; visibility:hidden ;'><br> <table width='290' height='353' cellpadding='2' cellspacing='0'><br> <tr><br> <td style='border:1px #666666 solid' height='353' align='center' bgcolor='white'><br> <img src="/popup/bf.jpg" alt="블랙프라이데이행사" width="289" height="351" /> <br> </td><br> </tr><br> <tr><br> <td align='right' bgcolor='white'><br> <input type='checkbox' name='chkbox' value='divpop11' onclick='closeWin(true,"divpop11");'>오늘 하루 이 창을 열지 않음<br> <a href='#'' onclick='closeWin(false,"divpop11"); return false;'><B>[닫기]</B></a><br> </td><br> </tr><br> </table><br> </div></div> <div> </div> <div> </div> <div>function setCookie( name, value, expiredays )<br>{<br> var todayDate = new Date();<br> todayDate.setDate( todayDate.getDate() + expiredays );<br> document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';'<br>}</div> <div><br>function closeWin(flag, layer)<br>{<br> var obj = window.event.srcElement;</div> <div><br> if ( flag )<br> {<br> setCookie( layer, 'done' , 1 );<br> }<br> document.all[layer].style.visibility = 'hidden';<br>}</div> <div><br>window.onload = function() // 윈도우즈 로딩이 끝난후<br>{<br> cookiedata = document.cookie;<br> var divs = document.all.tags('DIV'); // DIV 들을 가져옵니다.</div> <div><br> for(var i=0; i<divs.length; i++)<br> {<br> if(divs[i].className=='layer_popup') // DIV 중에 class 가 layer_popup 로 지정된 객체들이면<br> {<br> // 쿠키 내에서 해당하는 div 객체의 ID 값을 가지는 객체를 가져와서 동적으로 비교<br> if( cookiedata.indexOf(divs[i].id+'=done')>=0 ) document.all[divs[i].id].style.visibility = 'hidden';<br> else document.all[divs[i].id].style.visibility = 'visible';<br> }<br> }<br>}</div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.