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

· 19년 전 · 2662
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,641
19년 전 조회 2,598
19년 전 조회 6,442
19년 전 조회 2,322
19년 전 조회 2,180
19년 전 조회 2,994
19년 전 조회 2,095
19년 전 조회 2,539
19년 전 조회 2,378
19년 전 조회 3,844
19년 전 조회 2,837
19년 전 조회 3,043
19년 전 조회 4,641
19년 전 조회 3,842
19년 전 조회 2,575
19년 전 조회 4,580
19년 전 조회 3,554
19년 전 조회 4,431
19년 전 조회 2,284
19년 전 조회 2,494
19년 전 조회 2,424
19년 전 조회 3,628
19년 전 조회 3,011
19년 전 조회 3,778
19년 전 조회 2,976
19년 전 조회 2,794
19년 전 조회 2,629
19년 전 조회 2,508
19년 전 조회 2,417
19년 전 조회 4,535
19년 전 조회 2,963
19년 전 조회 2,442
19년 전 조회 2,542
19년 전 조회 3,120
19년 전 조회 2,245
19년 전 조회 3,483
19년 전 조회 3,053
19년 전 조회 2,551
19년 전 조회 2,090
19년 전 조회 2,510
19년 전 조회 2,309
19년 전 조회 2,183
19년 전 조회 2,751
19년 전 조회 2,597
19년 전 조회 4,166
19년 전 조회 4,031
19년 전 조회 2,540
19년 전 조회 3,558
19년 전 조회 2,247
19년 전 조회 2,663
19년 전 조회 2,558
19년 전 조회 2,614
19년 전 조회 2,475
19년 전 조회 3,103
19년 전 조회 3,111
19년 전 조회 3,437
19년 전 조회 3,325
19년 전 조회 2,977
19년 전 조회 3,204
19년 전 조회 3,436
19년 전 조회 3,147
19년 전 조회 2,878
19년 전 조회 3,203
19년 전 조회 4,778
19년 전 조회 2,694
19년 전 조회 2,707
19년 전 조회 3,767
19년 전 조회 3,421
19년 전 조회 3,091
19년 전 조회 2,343
19년 전 조회 2,067
19년 전 조회 3,148
19년 전 조회 1,989
19년 전 조회 2,595
19년 전 조회 4,213
19년 전 조회 4,009
19년 전 조회 3,720
19년 전 조회 3,657
19년 전 조회 1,838
19년 전 조회 2,198
19년 전 조회 2,129
19년 전 조회 2,795
19년 전 조회 4,889
19년 전 조회 3,022
19년 전 조회 2,176
19년 전 조회 2,180
19년 전 조회 2,073
19년 전 조회 2,829
19년 전 조회 8,439
19년 전 조회 2,991
19년 전 조회 3,047
19년 전 조회 3,322
19년 전 조회 2,474
19년 전 조회 2,491
19년 전 조회 2,449
19년 전 조회 2,335
19년 전 조회 2,530
19년 전 조회 2,772
19년 전 조회 3,347
19년 전 조회 2,595