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

· 19년 전 · 2394
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,366
19년 전 조회 2,340
19년 전 조회 6,165
19년 전 조회 2,032
19년 전 조회 1,910
19년 전 조회 2,716
19년 전 조회 1,823
19년 전 조회 2,290
19년 전 조회 2,120
19년 전 조회 3,571
19년 전 조회 2,584
19년 전 조회 2,758
19년 전 조회 4,378
19년 전 조회 3,561
19년 전 조회 2,319
19년 전 조회 4,306
19년 전 조회 3,284
19년 전 조회 4,147
19년 전 조회 2,007
19년 전 조회 2,222
19년 전 조회 2,151
19년 전 조회 3,360
19년 전 조회 2,730
19년 전 조회 3,518
19년 전 조회 2,695
19년 전 조회 2,533
19년 전 조회 2,352
19년 전 조회 2,244
19년 전 조회 2,133
19년 전 조회 4,264
19년 전 조회 2,688
19년 전 조회 2,170
19년 전 조회 2,273
19년 전 조회 2,855
19년 전 조회 1,970
19년 전 조회 3,212
19년 전 조회 2,772
19년 전 조회 2,280
19년 전 조회 1,822
19년 전 조회 2,246
19년 전 조회 2,019
19년 전 조회 1,918
19년 전 조회 2,476
19년 전 조회 2,331
19년 전 조회 3,896
19년 전 조회 3,749
19년 전 조회 2,254
19년 전 조회 3,294
19년 전 조회 1,967
19년 전 조회 2,395
19년 전 조회 2,289
19년 전 조회 2,355
19년 전 조회 2,190
19년 전 조회 2,830
19년 전 조회 2,833
19년 전 조회 3,180
19년 전 조회 3,053
19년 전 조회 2,717
19년 전 조회 2,935
19년 전 조회 3,182
19년 전 조회 2,889
19년 전 조회 2,622
19년 전 조회 2,939
19년 전 조회 4,518
19년 전 조회 2,436
19년 전 조회 2,457
19년 전 조회 3,497
19년 전 조회 3,163
19년 전 조회 2,818
19년 전 조회 2,062
19년 전 조회 1,792
19년 전 조회 2,889
19년 전 조회 1,732
19년 전 조회 2,325
19년 전 조회 3,963
19년 전 조회 3,745
19년 전 조회 3,465
19년 전 조회 3,413
19년 전 조회 1,577
19년 전 조회 1,947
19년 전 조회 1,868
19년 전 조회 2,536
19년 전 조회 4,629
19년 전 조회 2,766
19년 전 조회 1,931
19년 전 조회 1,941
19년 전 조회 1,827
19년 전 조회 2,572
19년 전 조회 8,187
19년 전 조회 2,735
19년 전 조회 2,802
19년 전 조회 3,053
19년 전 조회 2,208
19년 전 조회 2,225
19년 전 조회 2,188
19년 전 조회 2,078
19년 전 조회 2,268
19년 전 조회 2,524
19년 전 조회 3,094
19년 전 조회 2,340