팝업관련 오류 ㅠㅠ > 그누4 질문답변

그누4 질문답변

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

팝업관련 오류 ㅠㅠ 정보

팝업관련 오류 ㅠㅠ

본문

웹싸이트에서    게시판에 있는 그림을 팝업으로 뽑아 오는 부분이 있는데요

팝업도 잘쓰는데 문제는....

오늘 하루  닫기 를 누르면 다음 리플래쉬 한 때부터 이미지 가 있던곳의

링크. 로그인폼 부분이 반응하지않습니다.

예를 들어 이미지(300*400)가 웹페이지의 상단 왼쪽으로 띄웠으면

오늘하루 닫기를 누르고 리플래쉬 된때부터 그이미지가 있던 곳이 마우스가 반응 하지 않아요 ㅠㅠ

링크 클릭, 폼 입력 등등...


아래는 뽑아오는 스킨인데 어느 부분이 몰라도 다 올립니다....  좀 길어도 양해 부탁해요 ㅠㅠ


?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<script language="JavaScript1.2">
<!--
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
topDog=isIE ? "BODY" : "HTML";
hotDog=isIE ? event.srcElement : e.target;
idx=hotDog.id.substr(hotDog.id.length-1,1);
whichDog=isIE ? eval("document.all.divpop_<?=$cate?>"+idx) : document.getElementById("divpop_<?=$cate?>"+idx);
wD = eval("document.all.divpop_<?=$cate?>"+idx);
//while (hotDog.id!=eval("titleBar"+idx)&&hotDog.tagName!=topDog){
while (hotDog.id!=hotDog.id&&hotDog.tagName!=topDog){
  hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
}
  //if (hotDog.id==eval("document.all.titleBar"+idx)){

if (hotDog.id==("titleBar_<?=$cate?>"+idx)){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
if (!ddEnabled) return;
whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
return false;
}

function ddN4(whatDog){
if (!isN4) return;
N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(id){
if ( document.getElementById('chkbox_<?=$cate?>'+id).checked ) {
    setCookie( "divpop_<?=$cate?>"+id, "done", 1 );
  document.getElementById('chkbox_<?=$cate?>'+id).checked = false;
  }

  if (isIE||isNN) document.getElementById('divpop_<?=$cate?>'+id).style.visibility="hidden";
  else if (isN4) document.divpop.visibility="hide";

  //if (isIE||isNN) document.getElementById('divpop'+id).style.visibility=”hidden”;
  //else if (isN4) document.eval("divpop"+idx).visibility="hide";
}

//function showMe(){
  //if (isIE||isNN) document.getElementById('divpop'+id).style.visibility="visible";
  //else if (isN4) document.divpop.visibility="show";

  //if (isIE||isNN) whichDog.style.visibility=”visible”;
  //else if (isN4) document.theLayer.visibility=”show”;
//}

function setCookie( name, value, expiredays ) {
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");
//-->
</script>

<style type="text/css">
<!--
td.pop {
  font-family: Tahoma, 돋움, Dotum, sans-serif;
  font-size: 11px;
  line-height: 145%;
  color: #000000;
}
//-->
</style>

<?
for ($i=0; $i<count($list); $i++) {

$j = $i + 1;

$html = 0;
if (strstr($list[$i]['wr_option'], "html1"))
$html = 1;
else if (strstr($list[$i]['wr_option'], "html2"))
$html = 2;

$list[$i]['content'] = conv_content($list[$i]['wr_content'], $html);
?>

<div id="divpop_<?=$cate?><?=$i?>" style="position:absolute;width:<?=($list[$i]['wr_6']+12)?>px;left:<?=$list[$i]['wr_4']?>;top:<?=$list[$i]['wr_5']?>;visibility:hidden;z-index:<?=$j?>; z-index : 10">
<table border="0" width="<?=($list[$i]['wr_6']+12)?>" bgcolor="4a0f09" cellspacing="0" cellpadding="1">
<tr><td width="100%">
<table border="0" width="<?=($list[$i]['wr_6']+10)?>" cellspacing="0" cellpadding="0" height="<?=($list[$i]['wr_7']+50)?>">
    <tr height="20">
    <td width="<?=$list[$i]['wr_6']?>" id="titleBar_<?=$cate?><?=$i?>" style="cursor:move" class="pop">
    <ilayer width="100%" onSelectStart="return false">
    <layer width="100%" onMouseover="isHot=true;if (isN4) ddN4(divpop_<?=$cate?><?=$i?>)" onMouseout="isHot=false">
    <font face="Arial" color="#FFFFFF">&nbsp;&nbsp;&nbsp;<?=$list[$i]['subject']?></font>
    </layer>
    </ilayer>
    </td>
<a href="#" onClick="hideMe(<?=$i?>);return false"><!--  화면 클릭시 닫음-->
    <td width="10" style="cursor:hand" align="right" valign="top" class="pop"><font color=#ffffff size=2 face=arial style="text-decoration:none">X</font>&nbsp;</td>
    </tr>
    <tr><td colspan="2" bgcolor="#FFFFFF" style="padding:5px" valign="top" class="pop">
    <?

  // echo "<a href='{$list[$i][link_href][1]}'>";
  if ($list[$i][file][0][view]) {
    // 파일 출력
for ($k=0; $k<=count($list[$i][file]); $k++) {
  if ($list[$i][file][$k][view])
    echo "<img src='".$list[$i][file][$k][path]."/".$list[$i][file][$k][file]."' border='0'><br>";
    }
    } else {
?>-->
<!--내용 출력 -->
    <span id="writeContents"><?=$list[$i]['content'];?></span>
    <?
  }
  ?>
    </td></tr>
</a><!--  여기까지 클릭시 닫힘-->
  <tr><td colspan="2" height="20" bgcolor="#EFEFEF" align="right" class="pop">
  <input type="checkbox" name="chkbox_<?=$cate?><?=$i?>" id="chkbox_<?=$cate?><?=$i?>" value="checkbox" onfocus="this.blur();" onclick="hideMe(<?=$i?>);"> 하루 동안 이 창을 열지 않습니다. &nbsp;
  </td></tr>
    </table>
</td></tr>
</table>
</div>

<?
}
?>

<script language="JavaScript">
<!--
cookiedata = document.cookie;
for (j=0;j<<?=$i?>;j++){
if ( cookiedata.indexOf("divpop_<?=$cate?>"+j+"=done") < 0 ) {
  document.all['divpop_<?=$cate?>'+j].style.visibility = "visible";
  }
  else {
  document.all['divpop_<?=$cate?>'+j].style.visibility = "hidden";
  }
}
//-->
</script>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로