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

· 19년 전 · 2488
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,460
19년 전 조회 2,438
19년 전 조회 6,267
19년 전 조회 2,125
19년 전 조회 2,017
19년 전 조회 2,817
19년 전 조회 1,906
19년 전 조회 2,385
19년 전 조회 2,214
19년 전 조회 3,666
19년 전 조회 2,677
19년 전 조회 2,862
19년 전 조회 4,475
19년 전 조회 3,648
19년 전 조회 2,423
19년 전 조회 4,407
19년 전 조회 3,385
19년 전 조회 4,245
19년 전 조회 2,116
19년 전 조회 2,317
19년 전 조회 2,247
19년 전 조회 3,455
19년 전 조회 2,828
19년 전 조회 3,614
19년 전 조회 2,790
19년 전 조회 2,615
19년 전 조회 2,444
19년 전 조회 2,337
19년 전 조회 2,229
19년 전 조회 4,371
19년 전 조회 2,773
19년 전 조회 2,262
19년 전 조회 2,360
19년 전 조회 2,948
19년 전 조회 2,058
19년 전 조회 3,304
19년 전 조회 2,866
19년 전 조회 2,373
19년 전 조회 1,905
19년 전 조회 2,349
19년 전 조회 2,117
19년 전 조회 1,998
19년 전 조회 2,565
19년 전 조회 2,422
19년 전 조회 4,000
19년 전 조회 3,840
19년 전 조회 2,350
19년 전 조회 3,397
19년 전 조회 2,061
19년 전 조회 2,489
19년 전 조회 2,376
19년 전 조회 2,446
19년 전 조회 2,279
19년 전 조회 2,911
19년 전 조회 2,924
19년 전 조회 3,262
19년 전 조회 3,137
19년 전 조회 2,804
19년 전 조회 3,024
19년 전 조회 3,266
19년 전 조회 2,978
19년 전 조회 2,709
19년 전 조회 3,038
19년 전 조회 4,613
19년 전 조회 2,521
19년 전 조회 2,547
19년 전 조회 3,585
19년 전 조회 3,255
19년 전 조회 2,906
19년 전 조회 2,152
19년 전 조회 1,889
19년 전 조회 2,977
19년 전 조회 1,834
19년 전 조회 2,405
19년 전 조회 4,053
19년 전 조회 3,831
19년 전 조회 3,552
19년 전 조회 3,501
19년 전 조회 1,668
19년 전 조회 2,029
19년 전 조회 1,948
19년 전 조회 2,629
19년 전 조회 4,711
19년 전 조회 2,864
19년 전 조회 2,022
19년 전 조회 2,025
19년 전 조회 1,921
19년 전 조회 2,661
19년 전 조회 8,271
19년 전 조회 2,829
19년 전 조회 2,886
19년 전 조회 3,150
19년 전 조회 2,294
19년 전 조회 2,312
19년 전 조회 2,273
19년 전 조회 2,160
19년 전 조회 2,352
19년 전 조회 2,613
19년 전 조회 3,178
19년 전 조회 2,425