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

· 19년 전 · 2452
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,421
19년 전 조회 2,396
19년 전 조회 6,221
19년 전 조회 2,096
19년 전 조회 1,981
19년 전 조회 2,779
19년 전 조회 1,878
19년 전 조회 2,351
19년 전 조회 2,181
19년 전 조회 3,626
19년 전 조회 2,641
19년 전 조회 2,821
19년 전 조회 4,436
19년 전 조회 3,608
19년 전 조회 2,389
19년 전 조회 4,363
19년 전 조회 3,349
19년 전 조회 4,200
19년 전 조회 2,072
19년 전 조회 2,280
19년 전 조회 2,209
19년 전 조회 3,411
19년 전 조회 2,782
19년 전 조회 3,576
19년 전 조회 2,742
19년 전 조회 2,586
19년 전 조회 2,409
19년 전 조회 2,303
19년 전 조회 2,189
19년 전 조회 4,325
19년 전 조회 2,735
19년 전 조회 2,219
19년 전 조회 2,316
19년 전 조회 2,918
19년 전 조회 2,024
19년 전 조회 3,265
19년 전 조회 2,827
19년 전 조회 2,332
19년 전 조회 1,869
19년 전 조회 2,309
19년 전 조회 2,080
19년 전 조회 1,957
19년 전 조회 2,523
19년 전 조회 2,378
19년 전 조회 3,954
19년 전 조회 3,796
19년 전 조회 2,305
19년 전 조회 3,359
19년 전 조회 2,023
19년 전 조회 2,453
19년 전 조회 2,340
19년 전 조회 2,404
19년 전 조회 2,240
19년 전 조회 2,877
19년 전 조회 2,879
19년 전 조회 3,225
19년 전 조회 3,098
19년 전 조회 2,766
19년 전 조회 2,991
19년 전 조회 3,232
19년 전 조회 2,943
19년 전 조회 2,672
19년 전 조회 3,001
19년 전 조회 4,566
19년 전 조회 2,486
19년 전 조회 2,501
19년 전 조회 3,547
19년 전 조회 3,215
19년 전 조회 2,867
19년 전 조회 2,111
19년 전 조회 1,848
19년 전 조회 2,942
19년 전 조회 1,789
19년 전 조회 2,375
19년 전 조회 4,011
19년 전 조회 3,796
19년 전 조회 3,516
19년 전 조회 3,468
19년 전 조회 1,624
19년 전 조회 1,991
19년 전 조회 1,913
19년 전 조회 2,586
19년 전 조회 4,674
19년 전 조회 2,823
19년 전 조회 1,988
19년 전 조회 1,992
19년 전 조회 1,884
19년 전 조회 2,622
19년 전 조회 8,239
19년 전 조회 2,785
19년 전 조회 2,847
19년 전 조회 3,109
19년 전 조회 2,251
19년 전 조회 2,273
19년 전 조회 2,232
19년 전 조회 2,127
19년 전 조회 2,310
19년 전 조회 2,574
19년 전 조회 3,146
19년 전 조회 2,386