님

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

· 2009-02-09 (월) 16:23:50 · 2769
<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,187건
+
제목 글쓴이 날짜 조회
10-10-04 조회 2,823
10-10-03 조회 2,030
10-10-03 조회 2,542
10-10-02 조회 2,427
10-10-02 조회 2,020
10-10-02 조회 2,049
10-10-02 조회 1,948
10-10-02 조회 1,911
10-10-01 조회 2,131
10-10-01 조회 2,508
10-10-01 조회 3,622
10-10-01 조회 2,161
10-10-01 조회 2,282
10-10-01 조회 2,347
10-09-30 조회 2,306
10-09-30 조회 2,446
10-09-30 조회 2,023
10-09-30 조회 3,582
10-09-30 조회 2,128
10-09-30 조회 3,103
10-09-30 조회 2,097
10-09-30 조회 2,069
10-09-30 조회 2,965
10-09-30 조회 2,414
10-09-30 조회 2,670
10-09-30 조회 2,994
10-09-30 조회 2,649
10-09-30 조회 2,744
10-09-30 조회 2,168
10-09-29 조회 3,620
10-09-29 조회 2,366
10-09-29 조회 2,119
10-09-29 조회 2,518
10-09-29 조회 2,192
10-09-29 조회 3,480
10-09-30 조회 2,410
10-09-29 조회 2,185
10-09-29 조회 2,356
10-09-29 조회 2,320
10-09-29 조회 2,338
10-09-29 조회 2,379
10-09-29 조회 1,879
10-09-29 조회 1,834
10-09-29 조회 1,784
10-09-29 조회 2,457
10-09-29 조회 2,277
10-09-28 조회 2,069
10-09-28 조회 2,092
10-09-28 조회 2,461
10-09-28 조회 4,719
10-09-28 조회 2,609
10-09-28 조회 3,295
10-09-27 조회 2,481
10-09-27 조회 2,367
10-09-27 조회 4,037
10-09-26 조회 3,036
10-09-26 조회 3,917
10-09-26 조회 4,221
10-09-25 조회 2,840
10-09-25 조회 2,466
10-09-25 조회 2,857
10-09-25 조회 2,307
10-09-25 조회 2,600
10-09-25 조회 2,494
10-09-25 조회 2,859
10-09-24 조회 3,198
10-09-24 조회 2,294
10-09-24 조회 2,938
10-09-24 조회 2,644
10-09-24 조회 2,408
10-09-24 조회 2,473
10-09-23 조회 2,755
10-09-22 조회 2,133
10-09-21 조회 2,345
10-09-21 조회 3,985
10-09-21 조회 3,015
10-09-21 조회 2,183
10-09-21 조회 2,206
10-09-20 조회 2,704
10-09-20 조회 2,792
10-09-20 조회 3,158
10-09-19 조회 2,472
10-09-19 조회 2,859
10-09-19 조회 2,152
10-09-18 조회 2,540
10-09-18 조회 2,813
10-09-18 조회 4,194
10-09-18 조회 2,600
10-09-18 조회 2,573
10-09-18 조회 2,377
10-09-18 조회 2,304
10-09-17 조회 2,285
10-09-17 조회 4,973
10-09-17 조회 4,396
10-09-17 조회 3,625
10-09-17 조회 3,998
10-09-17 조회 3,116
10-09-17 조회 2,515
10-09-17 조회 2,641
10-09-17 조회 3,950