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

· 19년 전 · 2575
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,543
19년 전 조회 2,512
19년 전 조회 6,356
19년 전 조회 2,225
19년 전 조회 2,094
19년 전 조회 2,905
19년 전 조회 2,000
19년 전 조회 2,463
19년 전 조회 2,291
19년 전 조회 3,750
19년 전 조회 2,753
19년 전 조회 2,946
19년 전 조회 4,555
19년 전 조회 3,730
19년 전 조회 2,499
19년 전 조회 4,498
19년 전 조회 3,468
19년 전 조회 4,335
19년 전 조회 2,199
19년 전 조회 2,400
19년 전 조회 2,324
19년 전 조회 3,539
19년 전 조회 2,901
19년 전 조회 3,695
19년 전 조회 2,876
19년 전 조회 2,701
19년 전 조회 2,528
19년 전 조회 2,427
19년 전 조회 2,317
19년 전 조회 4,443
19년 전 조회 2,863
19년 전 조회 2,337
19년 전 조회 2,445
19년 전 조회 3,029
19년 전 조회 2,152
19년 전 조회 3,385
19년 전 조회 2,956
19년 전 조회 2,458
19년 전 조회 1,985
19년 전 조회 2,428
19년 전 조회 2,209
19년 전 조회 2,084
19년 전 조회 2,650
19년 전 조회 2,498
19년 전 조회 4,078
19년 전 조회 3,935
19년 전 조회 2,444
19년 전 조회 3,477
19년 전 조회 2,148
19년 전 조회 2,576
19년 전 조회 2,460
19년 전 조회 2,524
19년 전 조회 2,375
19년 전 조회 3,007
19년 전 조회 3,015
19년 전 조회 3,345
19년 전 조회 3,223
19년 전 조회 2,892
19년 전 조회 3,104
19년 전 조회 3,342
19년 전 조회 3,062
19년 전 조회 2,797
19년 전 조회 3,121
19년 전 조회 4,697
19년 전 조회 2,602
19년 전 조회 2,627
19년 전 조회 3,676
19년 전 조회 3,332
19년 전 조회 2,987
19년 전 조회 2,235
19년 전 조회 1,971
19년 전 조회 3,059
19년 전 조회 1,914
19년 전 조회 2,491
19년 전 조회 4,130
19년 전 조회 3,921
19년 전 조회 3,635
19년 전 조회 3,582
19년 전 조회 1,753
19년 전 조회 2,123
19년 전 조회 2,040
19년 전 조회 2,714
19년 전 조회 4,802
19년 전 조회 2,936
19년 전 조회 2,099
19년 전 조회 2,109
19년 전 조회 2,002
19년 전 조회 2,745
19년 전 조회 8,360
19년 전 조회 2,915
19년 전 조회 2,978
19년 전 조회 3,240
19년 전 조회 2,382
19년 전 조회 2,406
19년 전 조회 2,363
19년 전 조회 2,252
19년 전 조회 2,438
19년 전 조회 2,694
19년 전 조회 3,269
19년 전 조회 2,518