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

· 19년 전 · 2377
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,350
19년 전 조회 2,324
19년 전 조회 6,153
19년 전 조회 2,016
19년 전 조회 1,898
19년 전 조회 2,701
19년 전 조회 1,801
19년 전 조회 2,275
19년 전 조회 2,106
19년 전 조회 3,556
19년 전 조회 2,572
19년 전 조회 2,743
19년 전 조회 4,366
19년 전 조회 3,545
19년 전 조회 2,306
19년 전 조회 4,294
19년 전 조회 3,265
19년 전 조회 4,131
19년 전 조회 1,993
19년 전 조회 2,208
19년 전 조회 2,137
19년 전 조회 3,344
19년 전 조회 2,715
19년 전 조회 3,505
19년 전 조회 2,678
19년 전 조회 2,518
19년 전 조회 2,339
19년 전 조회 2,231
19년 전 조회 2,123
19년 전 조회 4,249
19년 전 조회 2,670
19년 전 조회 2,157
19년 전 조회 2,256
19년 전 조회 2,837
19년 전 조회 1,956
19년 전 조회 3,194
19년 전 조회 2,753
19년 전 조회 2,263
19년 전 조회 1,808
19년 전 조회 2,233
19년 전 조회 2,003
19년 전 조회 1,900
19년 전 조회 2,461
19년 전 조회 2,316
19년 전 조회 3,880
19년 전 조회 3,734
19년 전 조회 2,236
19년 전 조회 3,279
19년 전 조회 1,951
19년 전 조회 2,378
19년 전 조회 2,269
19년 전 조회 2,340
19년 전 조회 2,173
19년 전 조회 2,808
19년 전 조회 2,817
19년 전 조회 3,166
19년 전 조회 3,034
19년 전 조회 2,703
19년 전 조회 2,921
19년 전 조회 3,171
19년 전 조회 2,872
19년 전 조회 2,608
19년 전 조회 2,920
19년 전 조회 4,499
19년 전 조회 2,423
19년 전 조회 2,444
19년 전 조회 3,479
19년 전 조회 3,150
19년 전 조회 2,803
19년 전 조회 2,045
19년 전 조회 1,771
19년 전 조회 2,873
19년 전 조회 1,718
19년 전 조회 2,310
19년 전 조회 3,950
19년 전 조회 3,729
19년 전 조회 3,449
19년 전 조회 3,401
19년 전 조회 1,560
19년 전 조회 1,930
19년 전 조회 1,851
19년 전 조회 2,518
19년 전 조회 4,615
19년 전 조회 2,750
19년 전 조회 1,916
19년 전 조회 1,924
19년 전 조회 1,812
19년 전 조회 2,552
19년 전 조회 8,173
19년 전 조회 2,721
19년 전 조회 2,786
19년 전 조회 3,039
19년 전 조회 2,193
19년 전 조회 2,208
19년 전 조회 2,173
19년 전 조회 2,067
19년 전 조회 2,257
19년 전 조회 2,511
19년 전 조회 3,077
19년 전 조회 2,329
🐛 버그신고