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

· 19년 전 · 2375
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,347
19년 전 조회 2,320
19년 전 조회 6,151
19년 전 조회 2,012
19년 전 조회 1,895
19년 전 조회 2,698
19년 전 조회 1,798
19년 전 조회 2,273
19년 전 조회 2,103
19년 전 조회 3,554
19년 전 조회 2,571
19년 전 조회 2,741
19년 전 조회 4,363
19년 전 조회 3,543
19년 전 조회 2,305
19년 전 조회 4,290
19년 전 조회 3,264
19년 전 조회 4,130
19년 전 조회 1,993
19년 전 조회 2,207
19년 전 조회 2,135
19년 전 조회 3,340
19년 전 조회 2,713
19년 전 조회 3,502
19년 전 조회 2,675
19년 전 조회 2,514
19년 전 조회 2,337
19년 전 조회 2,229
19년 전 조회 2,119
19년 전 조회 4,247
19년 전 조회 2,668
19년 전 조회 2,155
19년 전 조회 2,253
19년 전 조회 2,836
19년 전 조회 1,953
19년 전 조회 3,192
19년 전 조회 2,752
19년 전 조회 2,261
19년 전 조회 1,806
19년 전 조회 2,229
19년 전 조회 2,000
19년 전 조회 1,894
19년 전 조회 2,458
19년 전 조회 2,313
19년 전 조회 3,877
19년 전 조회 3,733
19년 전 조회 2,232
19년 전 조회 3,276
19년 전 조회 1,949
19년 전 조회 2,376
19년 전 조회 2,268
19년 전 조회 2,338
19년 전 조회 2,172
19년 전 조회 2,805
19년 전 조회 2,816
19년 전 조회 3,161
19년 전 조회 3,030
19년 전 조회 2,701
19년 전 조회 2,920
19년 전 조회 3,168
19년 전 조회 2,869
19년 전 조회 2,606
19년 전 조회 2,916
19년 전 조회 4,495
19년 전 조회 2,421
19년 전 조회 2,440
19년 전 조회 3,475
19년 전 조회 3,147
19년 전 조회 2,800
19년 전 조회 2,042
19년 전 조회 1,768
19년 전 조회 2,872
19년 전 조회 1,715
19년 전 조회 2,307
19년 전 조회 3,947
19년 전 조회 3,726
19년 전 조회 3,445
19년 전 조회 3,399
19년 전 조회 1,558
19년 전 조회 1,927
19년 전 조회 1,850
19년 전 조회 2,517
19년 전 조회 4,612
19년 전 조회 2,749
19년 전 조회 1,914
19년 전 조회 1,922
19년 전 조회 1,811
19년 전 조회 2,549
19년 전 조회 8,171
19년 전 조회 2,719
19년 전 조회 2,784
19년 전 조회 3,037
19년 전 조회 2,190
19년 전 조회 2,205
19년 전 조회 2,170
19년 전 조회 2,064
19년 전 조회 2,254
19년 전 조회 2,511
19년 전 조회 3,076
19년 전 조회 2,326
🐛 버그신고