head에 팝창 여러개 띄우려면 정보
head에 팝창 여러개 띄우려면본문
head에 pop.php 파일을 띄울려고 하는데요
팝창이 여러게 각각 뜨게 하려고 하려면 어떻게 하는지요?
팝업 자바스크립트 소스를 각각 따로따로의 팝창 파일명으로 올려야 하나요
댓글 전체
<!--팝업창 소스 start -->
<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 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 ( getCookie( "popup01" ) != "done" ){
noticeWindow = window.open('./popup/popup_01.php','window','width=340,height=320,top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
//두번째 새창띄우기 시작
if ( getCookie( "popup02" ) != "done" ){
noticeWindow = window.open('./popup/popup_02.php','window2','width=560,height=434,top=0,left=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
//두번째 새창띄우기 시작
if ( getCookie( "popup03" ) != "done" ){
noticeWindow = window.open('./popup/popup_03.php','window4','width=350,height=534,top=0,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
//두번째 새창띄우기 시작
if ( getCookie( "popup04" ) != "done" ){
noticeWindow = window.open('./popup/popup_04.php','window5','width=454,height=480,top=0,left=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
-->
</script>
<!--팝업창 소스 end -->
<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 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 ( getCookie( "popup01" ) != "done" ){
noticeWindow = window.open('./popup/popup_01.php','window','width=340,height=320,top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
//두번째 새창띄우기 시작
if ( getCookie( "popup02" ) != "done" ){
noticeWindow = window.open('./popup/popup_02.php','window2','width=560,height=434,top=0,left=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
//두번째 새창띄우기 시작
if ( getCookie( "popup03" ) != "done" ){
noticeWindow = window.open('./popup/popup_03.php','window4','width=350,height=534,top=0,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
//두번째 새창띄우기 시작
if ( getCookie( "popup04" ) != "done" ){
noticeWindow = window.open('./popup/popup_04.php','window5','width=454,height=480,top=0,left=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
noticeWindow.opener = self;
}
-->
</script>
<!--팝업창 소스 end -->
가랑비67 님 넘감사드려요^^
상세히 소스완판을 다 알려주시니 잘 적용해보겠습니다
고맙습니다~~
상세히 소스완판을 다 알려주시니 잘 적용해보겠습니다
고맙습니다~~