님

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

· 2009-02-09 (월) 16:23:50 · 2767
<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-11-17 조회 2,337
10-11-16 조회 2,648
10-11-16 조회 2,150
10-11-16 조회 2,381
10-11-15 조회 2,856
10-11-15 조회 2,369
10-11-15 조회 3,115
10-11-15 조회 2,133
10-11-15 조회 2,246
10-11-15 조회 2,789
10-11-15 조회 2,491
10-11-14 조회 2,151
10-11-14 조회 4,357
10-11-14 조회 2,687
10-11-14 조회 3,700
10-11-13 조회 3,520
10-11-13 조회 2,502
10-11-13 조회 3,725
10-11-12 조회 2,328
10-11-12 조회 2,715
10-11-11 조회 3,891
10-11-11 조회 2,104
10-11-11 조회 2,722
10-11-10 조회 2,947
10-11-10 조회 2,218
10-11-10 조회 2,568
10-11-10 조회 2,050
10-11-09 조회 3,382
10-11-09 조회 2,897
10-11-09 조회 2,230
10-11-09 조회 1,931
10-11-09 조회 1,997
10-11-09 조회 2,541
10-11-09 조회 2,502
10-11-08 조회 1,910
10-11-08 조회 1,797
10-11-08 조회 2,086
10-11-08 조회 2,090
10-11-08 조회 3,011
10-11-08 조회 1,930
10-11-08 조회 2,074
10-11-08 조회 2,036
10-11-08 조회 2,290
10-11-08 조회 3,061
10-11-07 조회 2,951
10-11-07 조회 1.6만
10-11-07 조회 4,530
10-11-06 조회 2,085
10-11-06 조회 2,095
10-11-06 조회 2,247
10-11-06 조회 2,025
10-11-06 조회 1,988
10-11-06 조회 1.3만
10-11-05 조회 2,577
10-11-05 조회 2,552
10-11-05 조회 2,683
10-11-04 조회 2,591
10-11-04 조회 1,940
10-11-04 조회 2,795
10-11-04 조회 2,326
10-11-04 조회 1,967
10-11-04 조회 2,146
10-11-04 조회 2,204
10-11-04 조회 2,782
10-11-04 조회 2,131
10-11-04 조회 2,108
10-11-04 조회 2,337
10-11-03 조회 2,115
10-11-03 조회 2,972
10-11-03 조회 2,693
10-11-03 조회 4,272
10-11-03 조회 2,973
10-11-03 조회 2,002
10-11-03 조회 1,954
10-11-02 조회 2,176
10-11-02 조회 2,787
10-11-02 조회 2,810
10-11-01 조회 2,018
10-11-01 조회 2,108
10-11-01 조회 2,392
10-11-01 조회 2,606
10-10-31 조회 2,369
10-10-31 조회 2,323
10-10-31 조회 2,590
10-10-30 조회 2,000
10-10-30 조회 1,979
10-10-30 조회 2,499
10-10-30 조회 1,998
10-10-29 조회 3,167
10-10-29 조회 3,750
10-10-29 조회 2,183
10-10-29 조회 2,261
10-10-29 조회 3,137
10-10-28 조회 2,366
10-10-28 조회 2,461
10-10-28 조회 2,860
10-10-28 조회 3,014
10-10-28 조회 3,273
10-10-27 조회 2,576
10-10-27 조회 3,325