님

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

· 2009-02-09 (월) 16:23:50 · 2775
<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건
+
제목 글쓴이 날짜 조회
08-04-03 조회 2,804
08-04-02 조회 3,003
08-04-02 조회 2,879
08-04-02 조회 3,195
08-04-02 조회 3,153
08-04-02 조회 3,178
08-04-02 조회 3,125
08-04-02 조회 2,833
08-04-02 조회 2,827
08-04-02 조회 2,932
08-04-02 조회 3,235
08-04-02 조회 3,133
08-04-02 조회 2,911
08-04-02 조회 3,048
08-04-02 조회 2,718
08-04-02 조회 2,973
08-04-02 조회 3,297
08-04-02 조회 4,093
08-04-02 조회 3,288
08-03-31 조회 2,583
08-03-31 조회 3,147
08-03-31 조회 3,656
08-03-29 조회 2,775
08-03-28 조회 3,481
08-03-28 조회 2,981
08-03-28 조회 2,644
08-03-27 조회 2,483
08-03-26 조회 3,394
08-03-26 조회 4,341
08-03-25 조회 3,816
08-03-25 조회 2,828
08-03-25 조회 4,143
08-03-25 조회 3,652
08-03-25 조회 4,070
08-03-25 조회 4,101
08-03-25 조회 3,762
08-03-25 조회 3,664
08-03-25 조회 2,916
08-03-25 조회 3,673
08-03-25 조회 5,370
08-03-21 조회 3,028
08-03-19 조회 5,192
08-03-18 조회 3,054
08-03-16 조회 3,017
08-03-14 조회 3,333
08-03-13 조회 3,725
08-03-13 조회 2,708
08-03-11 조회 3,032
08-03-11 조회 3,579
08-03-11 조회 3,074
08-03-11 조회 3,036
08-03-11 조회 2,832
08-03-11 조회 2,672
08-03-11 조회 2,612
08-03-11 조회 2,423
08-03-11 조회 2,433
08-03-11 조회 2,489
08-03-11 조회 2,463
08-03-11 조회 2,871
08-03-11 조회 2,948
08-03-08 조회 3,168
08-03-07 조회 4,284
08-03-07 조회 3,398
08-03-07 조회 3,058
08-03-06 조회 3,396
08-03-06 조회 3,143
08-03-06 조회 4,832
08-03-05 조회 2,767
08-03-04 조회 2,911
08-03-04 조회 2,608
08-03-04 조회 3,472
08-03-03 조회 4,441
08-02-28 조회 3,544
08-02-27 조회 3,031
08-02-22 조회 4,347
08-02-22 조회 5,722
08-02-22 조회 2,989
08-02-21 조회 4,658
08-02-21 조회 2,892
08-02-21 조회 4,889
08-02-21 조회 7,163
08-02-21 조회 2,681
08-02-21 조회 3,445
08-02-20 조회 3,115
08-02-19 조회 2,786
08-02-19 조회 3,650
08-02-19 조회 3,847
08-02-15 조회 2,817
08-02-15 조회 3,999
08-02-14 조회 4,509
08-02-14 조회 2,701
08-02-12 조회 3,156
08-02-11 조회 5,156
08-02-09 조회 5,893
08-02-09 조회 3,085
08-02-08 조회 2,939
08-02-05 조회 3,953
08-02-04 조회 3,151
08-02-03 조회 5,450
08-02-03 조회 2,860