|
웹디자인,포토샵,그누보드,제로보드,동영상제작 관련 메모 >>
그누보드 게시물 이미지 클릭시 새창 안 뜨게 하기 |
2017-09-01 17:03:15 |
|
 |
홈페이지
|
|
|
tail.sub.php의
</body> 바로 위에
아래의 스크립트를 넣어줍니다.
<script type="text/javascript"> $('img').removeAttr('onclick'); /* 클릭시 이미지 팝업을 제거 */ $('img').removeAttr('style'); /* 마우스 오버시 손가락 모양 제거 */ </script>
적용 예
<script type="text/javascript" src="<?=$g4['path']?>/js/wrest.js"></script>
<!-- 새창 대신 사용하는 iframe --> <iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
<? if ($is_admin == "super") { ?><!-- <div style='float:left; width:<?=$table_width?>px; text-align:center;'>RUN TIME : <?=get_microtime()-$begin_time;?><br></div> --><? } ?>
<script type="text/javascript"> $('img').removeAttr('onclick'); $('img').removeAttr('style'); </script>
</body> </html>
|
|
|
|
|
|
|
|
|
|
|