묻고답하기

팝업창 파일명은 popup02.html이고
메인페이지는 index.php입니다.
pupup02.html의 소스는
===========================
<html>
<head>
<title>★ 추석 이야기 이벤트! ★</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style type="text/css">
<!--
body {  font-family: "돋움"; font-size: 12px; line-height: 20px; font-weight: normal; color: 333333; text-decoration: none}
td {  font-family: "돋움"; font-size: 12px; line-height: 20px; font-weight: normal; color: 333333; text-decoration: none}
-->
</style>
<script language="JavaScript">
<!--

function closeWin(){
opener.location='http://www.petpia.biz/info/info1_list.php?gubun=10';
self.close();
}

//-->
</script>

</head>

<body leftmargin="0" topmargin="0" bgcolor="#FFFFFF">
<table border="0" cellspacing="0" cellpadding="0" align="center" width="427">
  <tr>
    <td>
      <table width="600" border="0" cellspacing="0" cellpadding="0">
        <tr>
          
        <td><img src="img/popup.jpg" width="599" height="433" border="0" usemap="#Map"></td>
        </tr>
        <tr>
          <td>
          </td>
  </tr>
  <tr><td height="1" align="right"></td></tr>
  </table>
<map name="Map">
  <area shape="circle" coords="538,280,43" href="javascript:closeWin()">
</map>
</body>
</html>
====================================================================================

index.php에서 팝업창 띄우기 관련 소스하구 중간에 미심쩍은 부분까지 같이 적으면.
===================================================================================
<html>
<head>
<title>***>> petpia에 오신것을 환영합니다 <<***</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta http-equiv="pragma" content="no-cache">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
<!--
#floater {
        position:absolute;
        visibility:visible;
        left: 766px;
}
-->
</style>
<script language="JavaScript">
<!--
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat() {
if(IE) {
diffY = document.body.scrollTop;
diffX = 0;
}
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelTop += percent;
if(NS) document.floater.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelLeft += percent;
if(NS) document.floater.top += percent;
lastScrollY = lastScrollY + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
//-->
</script>
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

<!--
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 "";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//-->
</script>


</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_openBrWindow('popup02.html','','width=600,height=434')">
.
.
.
.
.

<table width="765" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <!-- 왼쪽 컨텐츠 시작 -->
                <td width="199" valign="top"><table width="199" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><img src="http://www.petpia.biz/img/bunyang_title.gif" width="199" height="25"></td>
                    </tr>
                    <tr>
                      <td valign="top"><script language="JavaScript1.2">
///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerwidth=199
var scrollerheight=90
var scrollerbgcolor='white'
//2000 miliseconds=1 seconds
var pausebetweenimages=2000

//configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate <a> tag
var slideimages=new Array()
slideimages[0]='<a href="http://www.petpia.biz/info/info8_view.php?pk=16"><img src="http://www.petpia.biz/img/bunyang_09.gif" border="0"></a>'
slideimages[1]='<a href="http://www.petpia.biz/info/info8_view.php?pk=14"><img src="http://www.petpia.biz/img/bunyang_06.gif" border="0"></a>'
slideimages[2]='<a href="http://www.petpia.biz/info/info8_view.php?pk=15"><img src="http://www.petpia.biz/img/bunyang_07.gif" border="0"></a>'
slideimages[3]='<a href="http://www.petpia.biz/info/info8_view.php?pk=13"><img src="http://www.petpia.biz/img/bunyang_08.gif" border="0"></a>'
slideimages[4]='<a href="http://www.petpia.biz/info/info8_view.php?pk=5"><img src="http://www.petpia.biz/img/bunyang_01.gif" border="0"></a>'
slideimages[5]='<a href="http://www.petpia.biz/info/info8_view.php?pk=6"><img src="http://www.petpia.biz/img/bunyang_02.gif" border="0"></a>'
slideimages[6]='<a href="http://www.petpia.biz/info/info8_view.php?pk=7"><img src="http://www.petpia.biz/img/bunyang_03.gif" border="0"></a>'
slideimages[7]='<a href="http://www.petpia.biz/info/info8_view.php?pk=8"><img src="http://www.petpia.biz/img/bunyang_04.gif" border="0"></a>'
slideimages[8]='<a href="http://www.petpia.biz/info/info8_view.php?pk=9"><img src="http://www.petpia.biz/img/bunyang_05.gif" border="0"></a>'

//extend this list

///////Do not edit pass this line///////////////////////
    

if (slideimages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",100)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(slideimages[i])
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",100)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(slideimages[i])
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(second2)",pausebetweenimages)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5
setTimeout("move3(tdiv)",100)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(first2)",pausebetweenimages)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5
setTimeout("move4(second2)",100)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (document.all){
move3(first2)
second2.style.top=scrollerheight
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll

</script> <ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; visibility=hide>
                        <layer id="first" left="0" top="1" width="1" height="200" z-index="1" >
                        <p>
                          <script language="JavaScript1.2">
if (document.layers)
document.write(slideimages[0])
</script>
                        </layer>
                        <layer id="second" left="0" top="0" width="1" height="200" z-index="1">
                        <p>
                          <script language="JavaScript1.2">
if (document.layers)
document.write(slideimages[1])
</script>
                        </layer>
                        <p></ilayer>
                        <script language="JavaScript1.2">
if (document.all){
document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+'">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
document.write(slideimages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0">')
document.write(slideimages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</span>')
}
</script></td>
======================================================================================

이렇게 됩니다.
왜 팝업창이 뜨지 않는지 모르겠어요..
고수님들 부탁드립니다..
참고로 사이트는 www.petpia.biz입니다.
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
기보은 자바스크립트중에.. BACK 으로-_-;; [1] 2007.08.10
윤창진 홈페이지 메뉴를 만들려고 하는데요.  
Lovely..윤미 제 홈페이지가 컴에 따라 너무 틀려요 [7] 2007.08.10
Essestyle 계산기기능부탁드립니다...^^ [2] 2007.08.10
박성은 디어유계정여쭤볼께요... [1] 2007.08.10
김명화 요즘 많이 쓰느 투명 플래쉬 배너여 어케 만드는거에여^^? [2] 2007.08.10
프로즈 홈페이지에 신용카드 결제같은거 할려면 어떡히 해야하죠?? [3] 2007.08.10
전정은 배경음악을 2곡 이상 재생하고 싶은데여..  
조은 아파치에서 이런 경우은 어떻게 설정을 해야 하나요 [5] 2007.08.10
고장미 플래시버튼에 링크거는법이 안되요.. [1] 2007.08.10
난관리자얌ㅎㅎ 카페를 하나 운영하고 있는딩..  
이준만 Mysql 복구에 대한 질문좀.... [5] 2007.08.10
이너™ 디지털 시계, 버튼효과 소스중 틀린점이 뭔지..ㅠ_ㅠ [2] 2007.08.10
박은주 팝업창이 뜨지 않는 이유좀 알려주세요 [2] 2007.08.10
배우기 페스워드 찾기가 안되네요 무엇이 문제일까요..  
아슈 테두리를 가늘게 주는 방법좀 가르쳐 주세요... [1] 2007.08.10
이상표 포토샵 - 반짝반짝 빛나게 해 주는 효과.. [2] 2007.08.10
da2sue 이폰트 이름이 뭔지 ...? [1] 2007.08.10
천진영 max 질문인데요  
이동범 표에 게시판이 크게 변하면서 이미지 위치가 변하는 문제....ㅡㅜ;; [2] 2007.08.10
반젤 포토샾 질문 입니다. [1] 2007.08.10
PHASE 자바 스크립트에서 16진수로 연산을 하려면 어떻게 해야하나요? [3] 2007.08.10
roilion 유료 도메인이랑 무료 계정은 연결이 불가능한가요? [6] 2007.08.10
니트로박사 이폰트 귀여운데 폰트 이름이 뭐죠? [2] 2007.08.10
박무환 mysql에 저장시 nl2br을 써서 넘기고 출력하면 브라우져에서 <br />이 되는 이유는? [4] 2007.08.10
김종득 일정한 양식에 관한 질문입니다 [2] 2007.08.10
박형준 이것좀 해주심 안댈까요? [2] 2007.08.10
정재근 이런건 어떻게 하는건지..... [3] file 2007.08.10
남궁종옥 아이프레임에서의 문제점 발견! 해결책좀 알려주세요! [1] 2007.08.10
박기련 뒤로/앞으로 가기 버튼 눌렀을때..