레이어팝업 제어 질문좀드려도 될까요?? 정보
HTML 레이어팝업 제어 질문좀드려도 될까요??
본문
파폭과 익스가 "이창을하루동안보이지 않습니다 & 닫기가 벌어져있더라고요??
보시는바와같이 파폭이 원래 상태구요..
<tr>
<td height=60>
</td>
</tr>
<td height=60>
</td>
</tr>
편법으로되나했더니.. 익스만 원하는대로 되더군요..
또 파폭이나 크롬에서 왜닫기버튼이 먹통인지.
뭐가 문제인지 어디서 뭐가 잘못사용된건지 자문을 좀 구하고 싶네요.
될수있으면 div 으로 교체하고 싶은데 다교체하면 아예깨져서..
휴..여러분의 고수분의 구제의손길을 기다립니다...
링크보시면 왜 질문했는지 아실겁니다@
---------------------------------------------------------------------------------------------------
?>
<div id="layer_<?=$no?>" style="position:absolute;border:2px solid #9A9A9A; left:<?=$layer[popup_left]?>px; top:<?=$layer[popup_top]?>px; width:<?=$width?>px; height:<?=$height?>px; z-index:<?=1000 +$no?>;filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);cursor:hand;background-color:#FFFFFF"
onmouseover="dragObj=layer_<?=$no?>; drag=1;move=0" onmouseout="drag=0">
<table border=0 cellpadding=0 cellspacing=0>
<tr height=20 bgcolor=#ffffff>
<td style="text-align:left;border-bottom:2px solid #9A9A9A;"colspan=2> </FONT> <font color=#000;>
<?=$title?></FONT></td>
</tr>
<tr valign=top >
<td colspan=2>
<!--------------본문---------------->
<?if($check_input=="TEXT") {
?>
<div id="layer_<?=$no?>" style="position:absolute;border:2px solid #9A9A9A; left:<?=$layer[popup_left]?>px; top:<?=$layer[popup_top]?>px; width:<?=$width?>px; height:<?=$height?>px; z-index:<?=1000 +$no?>;filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);cursor:hand;background-color:#FFFFFF"
onmouseover="dragObj=layer_<?=$no?>; drag=1;move=0" onmouseout="drag=0">
<table border=0 cellpadding=0 cellspacing=0>
<tr height=20 bgcolor=#ffffff>
<td style="text-align:left;border-bottom:2px solid #9A9A9A;"colspan=2> </FONT> <font color=#000;>
<?=$title?></FONT></td>
</tr>
<tr valign=top >
<td colspan=2>
<!--------------본문---------------->
<?if($check_input=="TEXT") {
?>
<table border=0 style="text-align:left;" cellpadding=0 cellspacing=0 width=<?=$width?> height=<?=$height?> >
<tr>
<td valign=top><?=$content?></td>
</tr>
<tr>
<td height=60>
</td>
</tr>
<tr>
<td valign=top><?=$content?></td>
</tr>
<tr>
<td height=60>
</td>
</tr>
<td>
<font color=#000 style='margin-top:70px;font-size:11px;font-family:돋움'><?=$gigan_text?></FONT>
<input type=checkbox name="gigan" value="<?=$gigan?>"
onclick="set_cookie('cookie_<?=$no?>','Y', <?=$gigan_hour?>,'/');layer_<?=$no?>.style.display='none';" align=absmiddle>
</td>
<td style="text-align:right;"><span OnClick="layer_<?=$no?>.style.display='none';" style='cursor:hand; '><img src='<?=$g4[path]?>/img/img_close_x.gif' border=0 align='absmiddle'></span>
</td>
</table>
<? }//컨텐츠 끝?>
<?if($check_input=="IMG") {
?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=<?=$height?> >
<tr>
<td align=center valign=top><?=$a_img_start?><img src="<?=$g4[path]?>/popup_img/<?=$img_file?>" border=0><?=$a_img_end?></td>
</tr>
</table>
<? }//이미지 끝?>
<?if($check_input=="IMG") {
?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=<?=$height?> >
<tr>
<td align=center valign=top><?=$a_img_start?><img src="<?=$g4[path]?>/popup_img/<?=$img_file?>" border=0><?=$a_img_end?></td>
</tr>
</table>
<? }//이미지 끝?>
</table>
</div>
<?
}//view_layer의 끝
?>
</div>
<?
}//view_layer의 끝
?>
-------------------------------------------------------------------------------------------------------
추천
0
0
댓글 6개
요런 레거시 DOM은 파폭에서 안되용... layer_<?=$no?>.style.display='none'; 를 document.getElementById(' layer_<?=$no?>').style.display='none' 식으로 고쳐야 되용...
cursor:hand -> cursor:pointer
cursor:hand -> cursor:pointer

감사합니다.. 남의거 수정해쓰는지라 잘몰랐다능 ㅎㅎ
근데 파폭에서 아예 착붙게 만들순없을까요??
익스는 </tr>
<tr>
<td height=60>
</td>
</tr>
이런편법써서잘만되는데.. 이것만고치면될것가튼데....
ps. 파폭에서느 레이어이동이 불가능한가요??
근데 파폭에서 아예 착붙게 만들순없을까요??
익스는 </tr>
<tr>
<td height=60>
</td>
</tr>
이런편법써서잘만되는데.. 이것만고치면될것가튼데....
ps. 파폭에서느 레이어이동이 불가능한가요??
잘못된 곳이 너무 많아용... 우쩌지. ㅎ.ㅎ

어쩌겠어요.. 2년전꺼라 많이 잘못되도 어쩌겠어요..
밀고 들어가야죠..
음.. 최근에 나온 탑님의 팝업관리 쓰기는...
제가 이걸빌더에 장착할거라서 ㄷㄷ..
만드어서 배포하는게 꿈이라 ㅎㅎ
쩝.. 님께 가르쳐달라고할수도없고.. 아..
밀고 들어가야죠..
음.. 최근에 나온 탑님의 팝업관리 쓰기는...
제가 이걸빌더에 장착할거라서 ㄷㄷ..
만드어서 배포하는게 꿈이라 ㅎㅎ
쩝.. 님께 가르쳐달라고할수도없고.. 아..
?>
<div id="layer_<?=$no?>" style="position:absolute;border:2px solid #9A9A9A; left:<?=$layer[popup_left]?>px;width:<?=$width?>px;height:<?=$height?>px; top:<?=$layer[popup_top]?>px; z-index:<?=1000 +$no?>;filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);cursor:pointer;background-color:#FFFFFF;"
onmouseover="dragObj=layer_<?=$no?>; drag=1;move=0" onmouseout="drag=0">
<div style="text-align:left;border-bottom:2px solid #9A9A9A;"><font color=#000;><?=$title?></FONT></div>
<!--------------본문---------------->
<?if($check_input=="TEXT") {?>
<div style="">
<?=$content?>
</div>
<div style="position:absolute;bottom:0;padding:10px 0 3px;width:100%;">
<div style="padding:3px 5px;">
<font color=#000 style='font-size:11px;font-family:돋움'><?=$gigan_text?></FONT>
<input type=checkbox name="gigan" value="<?=$gigan?>" onclick="set_cookie('cookie_<?=$no?>','Y', <?=$gigan_hour?>,'/'); document.getElementById('layer_<?=$no?>').style.display='none';" align="absmiddle">
<span onClick="document.getElementById('layer_<?=$no?>').style.display='none';" style='position:absolute;cursor:pointer; right: 5px; bottom:5px;'><img src='<?=$g4[path]?>/img/img_close_x.gif' border=0 align='absmiddle'></span>
</div>
</div>
<? }//컨텐츠 끝?>
<?if($check_input=="IMG") {?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=<?=$height?> >
<tr>
<td align=center valign=top><?=$a_img_start?><img src="<?=$g4[path]?>/popup_img/<?=$img_file?>" border=0><?=$a_img_end?></td>
</tr>
</table>
<? }//이미지 끝?>
</div>
<?
}//view_layer의 끝
?>
---
아.. 테이블 흐흐 떼어버렸음... 복잡하기만하고 ...
냉큼 고쳐봤음요.. ㅎ
<div id="layer_<?=$no?>" style="position:absolute;border:2px solid #9A9A9A; left:<?=$layer[popup_left]?>px;width:<?=$width?>px;height:<?=$height?>px; top:<?=$layer[popup_top]?>px; z-index:<?=1000 +$no?>;filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);cursor:pointer;background-color:#FFFFFF;"
onmouseover="dragObj=layer_<?=$no?>; drag=1;move=0" onmouseout="drag=0">
<div style="text-align:left;border-bottom:2px solid #9A9A9A;"><font color=#000;><?=$title?></FONT></div>
<!--------------본문---------------->
<?if($check_input=="TEXT") {?>
<div style="">
<?=$content?>
</div>
<div style="position:absolute;bottom:0;padding:10px 0 3px;width:100%;">
<div style="padding:3px 5px;">
<font color=#000 style='font-size:11px;font-family:돋움'><?=$gigan_text?></FONT>
<input type=checkbox name="gigan" value="<?=$gigan?>" onclick="set_cookie('cookie_<?=$no?>','Y', <?=$gigan_hour?>,'/'); document.getElementById('layer_<?=$no?>').style.display='none';" align="absmiddle">
<span onClick="document.getElementById('layer_<?=$no?>').style.display='none';" style='position:absolute;cursor:pointer; right: 5px; bottom:5px;'><img src='<?=$g4[path]?>/img/img_close_x.gif' border=0 align='absmiddle'></span>
</div>
</div>
<? }//컨텐츠 끝?>
<?if($check_input=="IMG") {?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=<?=$height?> >
<tr>
<td align=center valign=top><?=$a_img_start?><img src="<?=$g4[path]?>/popup_img/<?=$img_file?>" border=0><?=$a_img_end?></td>
</tr>
</table>
<? }//이미지 끝?>
</div>
<?
}//view_layer의 끝
?>
---
아.. 테이블 흐흐 떼어버렸음... 복잡하기만하고 ...
냉큼 고쳐봤음요.. ㅎ

잔 버그까지 해결완료!
감사드려요.. 정말 쉽지않은거였는데 이렇게 고쳐주시다니..
이걸어떻게 감사드려야할지.. 지금으로선 보답할 길이 안보이지만..
나중에 꼭갚을게요 ㅎㅎ
빌더 도움주신분에 님이름이라도 꼭넣어드려야겠어요 ㅎㅎ
감사드려요.. 정말 쉽지않은거였는데 이렇게 고쳐주시다니..
이걸어떻게 감사드려야할지.. 지금으로선 보답할 길이 안보이지만..
나중에 꼭갚을게요 ㅎㅎ
빌더 도움주신분에 님이름이라도 꼭넣어드려야겠어요 ㅎㅎ