XP서비스팩2 무시하고 새창 띄우기

· 19년 전 · 2387
Windows XP2의 팝업 차단 기능을 무시하고 팝업을 띄울 수 있는 JavaScript입니다.
ActiveX를 사용하게 되며, ActiveX를 차단해놓으신 분이나, Internet Explorer 사용자가 아니신 분은 제대로 작동하지 않습니다.

저도 퍼온 것이라 어떤 ActiveX에 의해 어떻게 팝업이 띄어지는지는 잘 모르기 때문에 이번에는 주석은 생략하도록 하겠습니다.

<script type="text/javascript">
<!--
function popup2()
{
open("팝업창주소","창타겟", "location=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,width=가로,height=세로,left=위치X,top=위치Y,scrollbars=yes");
}

function popup1()
{
popup.DOM.Script.execScript(popup2.toString());
popup.DOM.Script.popup2();
}
// -->
</script>

<body> 태그 내에 onload="popup1();"를 추가해주시고,
예: <body style="margin:0px" onload="popup1();">

<body>와 </body> 사이의 적당한 곳에 아래의 object를 넣어주세요.
<object id="popup" height="0" width="0" classid="clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A"></object>

또한 function popup2() 아래 문장도 수정해주셔야 합니다.
open("팝업창주소","창타겟", "location=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,width=가로,height=세로,left=위치X,top=위치Y,scrollbars=yes");

소스===============

<script type="text/javascript">
<!--
function popup2(){
open("http://www.naver.com","aaa", "location=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,width=500,height=500,left=400,top=200,scrollbars=yes");
}

function popup1(){
popup.DOM.Script.execScript(popup2.toString());
popup.DOM.Script.popup2();
}
// -->
</script>
<body style="margin:0px" onload="popup1();">
<object id="popup" height="0" width="0" classid="clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A"></object><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
19년 전 조회 3,360
19년 전 조회 2,333
19년 전 조회 6,163
19년 전 조회 2,027
19년 전 조회 1,905
19년 전 조회 2,712
19년 전 조회 1,817
19년 전 조회 2,283
19년 전 조회 2,117
19년 전 조회 3,567
19년 전 조회 2,580
19년 전 조회 2,755
19년 전 조회 4,378
19년 전 조회 3,559
19년 전 조회 2,317
19년 전 조회 4,304
19년 전 조회 3,277
19년 전 조회 4,144
19년 전 조회 2,003
19년 전 조회 2,218
19년 전 조회 2,147
19년 전 조회 3,356
19년 전 조회 2,724
19년 전 조회 3,516
19년 전 조회 2,692
19년 전 조회 2,528
19년 전 조회 2,351
19년 전 조회 2,242
19년 전 조회 2,130
19년 전 조회 4,259
19년 전 조회 2,680
19년 전 조회 2,165
19년 전 조회 2,267
19년 전 조회 2,851
19년 전 조회 1,967
19년 전 조회 3,206
19년 전 조회 2,767
19년 전 조회 2,274
19년 전 조회 1,816
19년 전 조회 2,241
19년 전 조회 2,015
19년 전 조회 1,911
19년 전 조회 2,470
19년 전 조회 2,327
19년 전 조회 3,891
19년 전 조회 3,747
19년 전 조회 2,251
19년 전 조회 3,290
19년 전 조회 1,961
19년 전 조회 2,388
19년 전 조회 2,283
19년 전 조회 2,348
19년 전 조회 2,184
19년 전 조회 2,826
19년 전 조회 2,827
19년 전 조회 3,174
19년 전 조회 3,051
19년 전 조회 2,712
19년 전 조회 2,933
19년 전 조회 3,180
19년 전 조회 2,883
19년 전 조회 2,617
19년 전 조회 2,934
19년 전 조회 4,513
19년 전 조회 2,433
19년 전 조회 2,453
19년 전 조회 3,491
19년 전 조회 3,160
19년 전 조회 2,814
19년 전 조회 2,055
19년 전 조회 1,786
19년 전 조회 2,884
19년 전 조회 1,729
19년 전 조회 2,321
19년 전 조회 3,960
19년 전 조회 3,742
19년 전 조회 3,458
19년 전 조회 3,410
19년 전 조회 1,573
19년 전 조회 1,942
19년 전 조회 1,863
19년 전 조회 2,531
19년 전 조회 4,626
19년 전 조회 2,761
19년 전 조회 1,928
19년 전 조회 1,934
19년 전 조회 1,822
19년 전 조회 2,567
19년 전 조회 8,186
19년 전 조회 2,731
19년 전 조회 2,798
19년 전 조회 3,046
19년 전 조회 2,205
19년 전 조회 2,221
19년 전 조회 2,185
19년 전 조회 2,076
19년 전 조회 2,264
19년 전 조회 2,521
19년 전 조회 3,093
19년 전 조회 2,340