님

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

· 2009-02-09 (월) 16:23:50 · 2762
<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-27 조회 2,974
10-10-27 조회 2,212
10-10-26 조회 3,317
10-10-26 조회 2,311
10-10-26 조회 2,205
10-10-26 조회 2,215
10-10-25 조회 2,137
10-10-24 조회 2,324
10-10-24 조회 2,364
10-10-24 조회 2,657
10-10-24 조회 4,822
10-10-24 조회 3,339
10-10-23 조회 2,281
10-10-23 조회 3,097
10-10-22 조회 2,127
10-10-22 조회 2,281
10-10-22 조회 3,458
10-10-22 조회 3,173
10-10-22 조회 2,199
10-10-21 조회 2,512
10-10-21 조회 2,462
10-10-21 조회 2,503
10-10-21 조회 2,649
10-10-21 조회 2,394
10-10-21 조회 2,393
10-10-21 조회 2,295
10-10-21 조회 2,472
10-10-21 조회 2,404
10-10-21 조회 3,033
10-10-21 조회 2,184
10-10-20 조회 2,158
10-10-20 조회 2,878
10-10-19 조회 2,891
10-10-19 조회 2,732
10-10-19 조회 2,281
10-10-19 조회 3,017
10-10-19 조회 2,425
10-10-19 조회 3,055
10-10-19 조회 3,472
10-10-19 조회 3,040
10-10-19 조회 9,097
10-10-19 조회 2,617
10-10-19 조회 2,767
10-10-19 조회 2,548
10-10-18 조회 2,650
10-10-18 조회 2,566
10-10-18 조회 2,631
10-10-18 조회 2,316
10-10-18 조회 3,457
10-10-17 조회 2,448
10-10-17 조회 2,310
10-10-17 조회 3,024
10-10-17 조회 2,798
10-10-16 조회 2,459
10-10-16 조회 2,362
10-10-16 조회 2,465
10-10-16 조회 2,836
10-10-16 조회 2,214
10-10-15 조회 2,327
10-10-14 조회 2,496
10-10-14 조회 3,305
10-10-13 조회 2,479
10-10-13 조회 2,624
10-10-13 조회 2,340
10-10-13 조회 2,362
10-10-12 조회 2,783
10-10-12 조회 3,095
10-10-12 조회 2,356
10-10-12 조회 2,832
10-10-11 조회 3,003
10-10-09 조회 2,437
10-10-09 조회 2,302
10-10-07 조회 2,627
10-10-07 조회 2,577
10-10-07 조회 2,277
10-10-07 조회 2,597
10-10-07 조회 2,713
10-10-07 조회 2,736
10-10-06 조회 4,681
10-10-06 조회 2,156
10-10-06 조회 2,917
10-10-06 조회 2,271
10-10-06 조회 3,102
10-10-06 조회 2,094
10-10-06 조회 2,347
10-10-05 조회 2,251
10-10-05 조회 2,300
10-10-05 조회 3,203
10-10-05 조회 4,523
10-10-05 조회 3,453
10-10-05 조회 3,417
10-10-05 조회 2,261
10-10-05 조회 2,475
10-10-05 조회 2,327
10-10-04 조회 2,114
10-10-04 조회 2,497
10-10-04 조회 2,208
10-10-04 조회 2,728
10-10-04 조회 1,991
10-10-04 조회 1,895