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

· 19년 전 · 2413
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,380
19년 전 조회 2,349
19년 전 조회 6,172
19년 전 조회 2,039
19년 전 조회 1,922
19년 전 조회 2,724
19년 전 조회 1,833
19년 전 조회 2,300
19년 전 조회 2,131
19년 전 조회 3,577
19년 전 조회 2,600
19년 전 조회 2,769
19년 전 조회 4,386
19년 전 조회 3,566
19년 전 조회 2,340
19년 전 조회 4,315
19년 전 조회 3,306
19년 전 조회 4,157
19년 전 조회 2,026
19년 전 조회 2,239
19년 전 조회 2,169
19년 전 조회 3,367
19년 전 조회 2,738
19년 전 조회 3,541
19년 전 조회 2,702
19년 전 조회 2,537
19년 전 조회 2,363
19년 전 조회 2,249
19년 전 조회 2,141
19년 전 조회 4,280
19년 전 조회 2,696
19년 전 조회 2,177
19년 전 조회 2,278
19년 전 조회 2,872
19년 전 조회 1,974
19년 전 조회 3,229
19년 전 조회 2,781
19년 전 조회 2,287
19년 전 조회 1,828
19년 전 조회 2,266
19년 전 조회 2,028
19년 전 조회 1,920
19년 전 조회 2,480
19년 전 조회 2,340
19년 전 조회 3,917
19년 전 조회 3,757
19년 전 조회 2,258
19년 전 조회 3,317
19년 전 조회 1,975
19년 전 조회 2,414
19년 전 조회 2,300
19년 전 조회 2,363
19년 전 조회 2,195
19년 전 조회 2,835
19년 전 조회 2,840
19년 전 조회 3,186
19년 전 조회 3,057
19년 전 조회 2,725
19년 전 조회 2,945
19년 전 조회 3,187
19년 전 조회 2,905
19년 전 조회 2,628
19년 전 조회 2,947
19년 전 조회 4,530
19년 전 조회 2,443
19년 전 조회 2,461
19년 전 조회 3,504
19년 전 조회 3,182
19년 전 조회 2,829
19년 전 조회 2,070
19년 전 조회 1,803
19년 전 조회 2,894
19년 전 조회 1,756
19년 전 조회 2,334
19년 전 조회 3,969
19년 전 조회 3,752
19년 전 조회 3,471
19년 전 조회 3,427
19년 전 조회 1,586
19년 전 조회 1,953
19년 전 조회 1,874
19년 전 조회 2,551
19년 전 조회 4,636
19년 전 조회 2,780
19년 전 조회 1,936
19년 전 조회 1,956
19년 전 조회 1,837
19년 전 조회 2,579
19년 전 조회 8,192
19년 전 조회 2,745
19년 전 조회 2,807
19년 전 조회 3,058
19년 전 조회 2,212
19년 전 조회 2,227
19년 전 조회 2,192
19년 전 조회 2,086
19년 전 조회 2,272
19년 전 조회 2,537
19년 전 조회 3,103
19년 전 조회 2,345