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

· 19년 전 · 2473
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,450
19년 전 조회 2,426
19년 전 조회 6,252
19년 전 조회 2,115
19년 전 조회 2,009
19년 전 조회 2,807
19년 전 조회 1,895
19년 전 조회 2,376
19년 전 조회 2,200
19년 전 조회 3,652
19년 전 조회 2,665
19년 전 조회 2,849
19년 전 조회 4,465
19년 전 조회 3,638
19년 전 조회 2,411
19년 전 조회 4,394
19년 전 조회 3,377
19년 전 조회 4,235
19년 전 조회 2,104
19년 전 조회 2,307
19년 전 조회 2,234
19년 전 조회 3,436
19년 전 조회 2,820
19년 전 조회 3,604
19년 전 조회 2,778
19년 전 조회 2,608
19년 전 조회 2,436
19년 전 조회 2,326
19년 전 조회 2,215
19년 전 조회 4,350
19년 전 조회 2,766
19년 전 조회 2,244
19년 전 조회 2,343
19년 전 조회 2,939
19년 전 조회 2,045
19년 전 조회 3,291
19년 전 조회 2,851
19년 전 조회 2,356
19년 전 조회 1,888
19년 전 조회 2,337
19년 전 조회 2,106
19년 전 조회 1,986
19년 전 조회 2,551
19년 전 조회 2,410
19년 전 조회 3,984
19년 전 조회 3,826
19년 전 조회 2,338
19년 전 조회 3,388
19년 전 조회 2,046
19년 전 조회 2,474
19년 전 조회 2,358
19년 전 조회 2,427
19년 전 조회 2,270
19년 전 조회 2,900
19년 전 조회 2,910
19년 전 조회 3,247
19년 전 조회 3,121
19년 전 조회 2,794
19년 전 조회 3,015
19년 전 조회 3,258
19년 전 조회 2,965
19년 전 조회 2,694
19년 전 조회 3,026
19년 전 조회 4,598
19년 전 조회 2,512
19년 전 조회 2,534
19년 전 조회 3,575
19년 전 조회 3,242
19년 전 조회 2,895
19년 전 조회 2,136
19년 전 조회 1,875
19년 전 조회 2,966
19년 전 조회 1,816
19년 전 조회 2,395
19년 전 조회 4,041
19년 전 조회 3,819
19년 전 조회 3,540
19년 전 조회 3,489
19년 전 조회 1,650
19년 전 조회 2,013
19년 전 조회 1,938
19년 전 조회 2,614
19년 전 조회 4,700
19년 전 조회 2,849
19년 전 조회 2,011
19년 전 조회 2,011
19년 전 조회 1,906
19년 전 조회 2,650
19년 전 조회 8,263
19년 전 조회 2,823
19년 전 조회 2,871
19년 전 조회 3,141
19년 전 조회 2,281
19년 전 조회 2,297
19년 전 조회 2,260
19년 전 조회 2,152
19년 전 조회 2,341
19년 전 조회 2,602
19년 전 조회 3,166
19년 전 조회 2,413