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

· 19년 전 · 2383
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,358
19년 전 조회 2,330
19년 전 조회 6,159
19년 전 조회 2,023
19년 전 조회 1,902
19년 전 조회 2,708
19년 전 조회 1,813
19년 전 조회 2,281
19년 전 조회 2,115
19년 전 조회 3,563
19년 전 조회 2,575
19년 전 조회 2,751
19년 전 조회 4,372
19년 전 조회 3,555
19년 전 조회 2,313
19년 전 조회 4,300
19년 전 조회 3,273
19년 전 조회 4,139
19년 전 조회 2,000
19년 전 조회 2,215
19년 전 조회 2,144
19년 전 조회 3,351
19년 전 조회 2,722
19년 전 조회 3,509
19년 전 조회 2,686
19년 전 조회 2,523
19년 전 조회 2,347
19년 전 조회 2,236
19년 전 조회 2,125
19년 전 조회 4,252
19년 전 조회 2,679
19년 전 조회 2,159
19년 전 조회 2,262
19년 전 조회 2,846
19년 전 조회 1,961
19년 전 조회 3,199
19년 전 조회 2,761
19년 전 조회 2,268
19년 전 조회 1,813
19년 전 조회 2,235
19년 전 조회 2,012
19년 전 조회 1,907
19년 전 조회 2,465
19년 전 조회 2,320
19년 전 조회 3,884
19년 전 조회 3,742
19년 전 조회 2,245
19년 전 조회 3,283
19년 전 조회 1,957
19년 전 조회 2,384
19년 전 조회 2,279
19년 전 조회 2,344
19년 전 조회 2,178
19년 전 조회 2,819
19년 전 조회 2,822
19년 전 조회 3,170
19년 전 조회 3,041
19년 전 조회 2,710
19년 전 조회 2,927
19년 전 조회 3,179
19년 전 조회 2,877
19년 전 조회 2,613
19년 전 조회 2,927
19년 전 조회 4,506
19년 전 조회 2,428
19년 전 조회 2,448
19년 전 조회 3,487
19년 전 조회 3,157
19년 전 조회 2,807
19년 전 조회 2,050
19년 전 조회 1,778
19년 전 조회 2,882
19년 전 조회 1,725
19년 전 조회 2,313
19년 전 조회 3,955
19년 전 조회 3,734
19년 전 조회 3,455
19년 전 조회 3,405
19년 전 조회 1,569
19년 전 조회 1,937
19년 전 조회 1,859
19년 전 조회 2,525
19년 전 조회 4,622
19년 전 조회 2,756
19년 전 조회 1,923
19년 전 조회 1,929
19년 전 조회 1,818
19년 전 조회 2,563
19년 전 조회 8,179
19년 전 조회 2,727
19년 전 조회 2,794
19년 전 조회 3,042
19년 전 조회 2,200
19년 전 조회 2,216
19년 전 조회 2,180
19년 전 조회 2,069
19년 전 조회 2,261
19년 전 조회 2,516
19년 전 조회 3,084
19년 전 조회 2,336