페이지내에서 이미지만 윈도우창으로 불러내서 보여주고 왼도우창 이미지 크기에 맞추어 조절하기

· 2009-02-09 (월) 16:23:50 · 2575
<script>
function MlangwindowPop(File) {
//소스제작 Mlang http://www.websil.co.kr-http://www.script.ne.kr - 수정 금지
if(File){
Mlangwindow = window.open("", "Image_Mlang", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=700,height=500,top=0,left=0");
Mlangwindow.document.open();
Mlangwindow.document.write("<html><head><title>『한국무용예술학회』</title>\n");
Mlangwindow.document.write("<SCRIPT LANGUAGE=\"JavaScript\">\n");
Mlangwindow.document.write("var isNav4, isIE4;\n");
Mlangwindow.document.write("if (parseInt(navigator.appVersion.charAt(0)) >= 4) {\n");
Mlangwindow.document.write("isNav4 = (navigator.appName == \"Netscape\") ? 1 : 0;\n");
Mlangwindow.document.write("isIE4 = (navigator.appName.indexOf(\"Microsoft\") != -1) ? 1 : 0;\n");
Mlangwindow.document.write("}\n");
Mlangwindow.document.write("function fitWindowSize() {\n");
Mlangwindow.document.write("if (isNav4) {\n");
Mlangwindow.document.write("window.innerWidth = document.layers[0].document.images[0].width;\n");
Mlangwindow.document.write("window.innerHeight = document.layers[0].document.images[0].height;\n");
Mlangwindow.document.write("}\n");
Mlangwindow.document.write("if (isIE4) {\n");
Mlangwindow.document.write("window.resizeTo(500, 500);\n");
Mlangwindow.document.write("width = 500 - (document.body.clientWidth - document.images[0].width);\n");
Mlangwindow.document.write("height = 500 - (document.body.clientHeight - document.images[0].height);\n");
Mlangwindow.document.write("window.resizeTo(width, height);\n");
Mlangwindow.document.write("}\n");
Mlangwindow.document.write("}\n");
Mlangwindow.document.write("<\/script>\n");
Mlangwindow.document.write("</HEAD>\n");
Mlangwindow.document.write("<BODY onLoad=\"fitWindowSize()\">\n");
Mlangwindow.document.write("<div style=\"position:absolute; left:0px; top:0px\">\n");
Mlangwindow.document.write("<a href=\"javascript:window.self.close();\"><img src=\""+File+"\" border=\"0\"></a>\n");
Mlangwindow.document.write("</div>\n");
Mlangwindow.document.write("</body></html>");
Mlangwindow.document.close();
}else{
alert('등록된 자료가 없습니다.');
}
}
</script>

<a href="javascript:MlangwindowPop('http://www.krsds.com/upload/photo/13.jpg');">테스트</a>

[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
10-09-25 조회 2,702
10-09-19 조회 2,737
10-09-15 조회 2,740
10-09-15 조회 4,145
10-09-15 조회 3,363
10-09-15 조회 2,473
10-09-07 조회 3,585
10-08-27 조회 4,042
10-06-11 조회 4,200
10-05-31 조회 2,446
10-02-27 조회 4,984
10-02-09 조회 3,731
09-10-10 조회 7,324
09-03-19 조회 3,161
09-02-09 조회 3,440
09-02-09 조회 4,514
08-11-01 조회 2,894
08-09-29 조회 4,543
08-09-26 조회 3,505
08-09-26 조회 3,584
08-09-26 조회 2,717
08-09-26 조회 3,761
08-09-26 조회 3,481
08-09-26 조회 4,246
08-09-18 조회 3,556
08-09-09 조회 3,212
08-08-28 조회 2,751
08-07-06 조회 3,524
08-05-21 조회 4,681
08-05-13 조회 4,521
08-04-17 조회 4,896
08-02-19 조회 3,522
08-01-18 조회 3,830
08-01-10 조회 3,795
07-10-22 조회 3,624
07-10-09 조회 4,251
07-10-03 조회 3,491
07-07-06 조회 4,202
07-07-06 조회 4,413
07-07-06 조회 4,027
07-06-28 조회 3,549
07-06-05 조회 3,552
07-06-05 조회 4,098
07-05-30 조회 3,266
07-05-02 조회 3,675
07-04-15 조회 5,071
07-04-11 조회 3,618
07-04-05 조회 3,907
07-03-31 조회 3,141
07-03-31 조회 4,115
07-03-30 조회 3,720
07-03-24 조회 3,994
07-03-22 조회 3,646
07-03-12 조회 4,397
07-02-16 조회 3,254
07-02-14 조회 5,154
07-02-10 조회 3,979
07-02-09 조회 4,365
07-01-19 조회 4,029
07-01-16 조회 4,948
06-12-16 조회 5,820
06-11-30 조회 3,576
06-11-25 조회 3,677
06-10-15 조회 5,049
06-09-26 조회 5,293
06-09-26 조회 5,412
06-09-22 조회 4,246
06-09-21 조회 3,528
06-09-21 조회 3,615
06-09-02 조회 3,467
06-08-08 조회 5,103
06-07-20 조회 3,703
06-07-17 조회 3,333
06-07-13 조회 4,151
06-07-11 조회 3,445
06-07-11 조회 3,438
06-07-11 조회 3,814
06-06-29 조회 6,030
06-06-19 조회 6,437
06-06-02 조회 3,488
06-05-24 조회 4,979
06-05-14 조회 7,755
06-05-08 조회 3,867
06-02-02 조회 5,440
05-12-16 조회 4,487
05-12-05 조회 5,140
05-06-28 조회 4,087
05-04-11 조회 4,042
05-04-11 조회 4,234
05-04-11 조회 3,300
05-03-13 조회 3,205
05-03-12 조회 4,286
04-12-08 조회 7,764
04-12-01 조회 5,163
04-11-28 조회 3,323
04-11-28 조회 3,165
04-08-05 조회 5,590
04-08-05 조회 4,936
04-08-05 조회 5,534