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

· 19년 전 · 2385
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,359
19년 전 조회 2,330
19년 전 조회 6,160
19년 전 조회 2,023
19년 전 조회 1,902
19년 전 조회 2,708
19년 전 조회 1,813
19년 전 조회 2,282
19년 전 조회 2,115
19년 전 조회 3,563
19년 전 조회 2,577
19년 전 조회 2,753
19년 전 조회 4,373
19년 전 조회 3,556
19년 전 조회 2,314
19년 전 조회 4,300
19년 전 조회 3,275
19년 전 조회 4,140
19년 전 조회 2,000
19년 전 조회 2,217
19년 전 조회 2,145
19년 전 조회 3,353
19년 전 조회 2,722
19년 전 조회 3,510
19년 전 조회 2,687
19년 전 조회 2,525
19년 전 조회 2,347
19년 전 조회 2,237
19년 전 조회 2,127
19년 전 조회 4,255
19년 전 조회 2,679
19년 전 조회 2,163
19년 전 조회 2,265
19년 전 조회 2,847
19년 전 조회 1,963
19년 전 조회 3,202
19년 전 조회 2,762
19년 전 조회 2,271
19년 전 조회 1,813
19년 전 조회 2,239
19년 전 조회 2,013
19년 전 조회 1,908
19년 전 조회 2,468
19년 전 조회 2,323
19년 전 조회 3,886
19년 전 조회 3,743
19년 전 조회 2,246
19년 전 조회 3,284
19년 전 조회 1,960
19년 전 조회 2,386
19년 전 조회 2,279
19년 전 조회 2,346
19년 전 조회 2,179
19년 전 조회 2,820
19년 전 조회 2,824
19년 전 조회 3,170
19년 전 조회 3,042
19년 전 조회 2,711
19년 전 조회 2,929
19년 전 조회 3,179
19년 전 조회 2,878
19년 전 조회 2,615
19년 전 조회 2,928
19년 전 조회 4,508
19년 전 조회 2,429
19년 전 조회 2,450
19년 전 조회 3,488
19년 전 조회 3,159
19년 전 조회 2,812
19년 전 조회 2,052
19년 전 조회 1,780
19년 전 조회 2,883
19년 전 조회 1,725
19년 전 조회 2,316
19년 전 조회 3,957
19년 전 조회 3,737
19년 전 조회 3,457
19년 전 조회 3,408
19년 전 조회 1,569
19년 전 조회 1,938
19년 전 조회 1,860
19년 전 조회 2,525
19년 전 조회 4,622
19년 전 조회 2,757
19년 전 조회 1,924
19년 전 조회 1,931
19년 전 조회 1,820
19년 전 조회 2,563
19년 전 조회 8,179
19년 전 조회 2,728
19년 전 조회 2,795
19년 전 조회 3,043
19년 전 조회 2,201
19년 전 조회 2,217
19년 전 조회 2,180
19년 전 조회 2,070
19년 전 조회 2,262
19년 전 조회 2,518
19년 전 조회 3,087
19년 전 조회 2,337