s

head에 팝창 여러개 띄우려면


head에 pop.php 파일을 띄울려고 하는데요
팝창이 여러게 각각 뜨게 하려고 하려면 어떻게 하는지요?

팝업 자바스크립트 소스를 각각 따로따로의 팝창 파일명으로 올려야 하나요

댓글 2개

<!--팝업창 소스 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 -->
가랑비67 님 넘감사드려요^^
상세히 소스완판을 다 알려주시니 잘 적용해보겠습니다
고맙습니다~~
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
09-12-01 조회 1,121
09-12-01 조회 1,317
09-12-01 조회 1,058
09-12-01 조회 1,055
09-12-01 조회 1,601
09-12-01 조회 1,003
09-12-01 조회 928
09-12-01 조회 1,076
09-12-01 조회 1,635
09-12-01 조회 1,177
09-12-01 조회 1,498
09-12-01 조회 1,218
09-12-01 조회 1,562
09-12-01 조회 1,622
09-11-30 조회 1,105
09-11-30 조회 1,142
09-11-30 조회 984
09-11-30 조회 852
09-11-30 조회 857
09-11-30 조회 1,032