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

· 19년 전 · 2420
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,387
19년 전 조회 2,363
19년 전 조회 6,182
19년 전 조회 2,052
19년 전 조회 1,936
19년 전 조회 2,738
19년 전 조회 1,840
19년 전 조회 2,310
19년 전 조회 2,143
19년 전 조회 3,594
19년 전 조회 2,607
19년 전 조회 2,776
19년 전 조회 4,397
19년 전 조회 3,575
19년 전 조회 2,355
19년 전 조회 4,327
19년 전 조회 3,314
19년 전 조회 4,163
19년 전 조회 2,040
19년 전 조회 2,249
19년 전 조회 2,174
19년 전 조회 3,377
19년 전 조회 2,748
19년 전 조회 3,550
19년 전 조회 2,706
19년 전 조회 2,547
19년 전 조회 2,377
19년 전 조회 2,259
19년 전 조회 2,155
19년 전 조회 4,288
19년 전 조회 2,706
19년 전 조회 2,180
19년 전 조회 2,287
19년 전 조회 2,880
19년 전 조회 1,986
19년 전 조회 3,239
19년 전 조회 2,791
19년 전 조회 2,299
19년 전 조회 1,836
19년 전 조회 2,276
19년 전 조회 2,040
19년 전 조회 1,927
19년 전 조회 2,486
19년 전 조회 2,348
19년 전 조회 3,923
19년 전 조회 3,764
19년 전 조회 2,269
19년 전 조회 3,326
19년 전 조회 1,982
19년 전 조회 2,421
19년 전 조회 2,312
19년 전 조회 2,370
19년 전 조회 2,202
19년 전 조회 2,839
19년 전 조회 2,846
19년 전 조회 3,192
19년 전 조회 3,065
19년 전 조회 2,735
19년 전 조회 2,957
19년 전 조회 3,196
19년 전 조회 2,913
19년 전 조회 2,640
19년 전 조회 2,955
19년 전 조회 4,542
19년 전 조회 2,453
19년 전 조회 2,466
19년 전 조회 3,513
19년 전 조회 3,188
19년 전 조회 2,832
19년 전 조회 2,081
19년 전 조회 1,810
19년 전 조회 2,897
19년 전 조회 1,764
19년 전 조회 2,340
19년 전 조회 3,976
19년 전 조회 3,760
19년 전 조회 3,475
19년 전 조회 3,435
19년 전 조회 1,593
19년 전 조회 1,958
19년 전 조회 1,881
19년 전 조회 2,554
19년 전 조회 4,641
19년 전 조회 2,784
19년 전 조회 1,949
19년 전 조회 1,963
19년 전 조회 1,848
19년 전 조회 2,584
19년 전 조회 8,199
19년 전 조회 2,751
19년 전 조회 2,814
19년 전 조회 3,067
19년 전 조회 2,221
19년 전 조회 2,234
19년 전 조회 2,197
19년 전 조회 2,091
19년 전 조회 2,283
19년 전 조회 2,542
19년 전 조회 3,113
19년 전 조회 2,348