님

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

· 2009-02-09 (월) 16:23:50 · 2776
<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건
+
제목 글쓴이 날짜 조회
07-10-19 조회 3,492
07-10-19 조회 3,245
07-10-19 조회 3,197
07-10-19 조회 2,897
07-10-19 조회 4,471
07-10-19 조회 5,837
07-10-19 조회 6,122
07-10-19 조회 3,512
07-10-19 조회 4,971
07-10-17 조회 4,626
07-10-17 조회 6,013
07-10-16 조회 4,638
07-10-15 조회 5,601
07-10-13 조회 5,273
07-10-09 조회 4,975
07-10-09 조회 4,312
07-10-09 조회 4,238
07-10-09 조회 4,798
07-10-09 조회 3,566
07-10-09 조회 3,349
07-10-09 조회 6,816
07-10-09 조회 3,965
07-10-09 조회 3,707
07-10-09 조회 4,030
07-10-09 조회 3,402
07-10-09 조회 4,444
07-10-08 조회 1.1만
07-10-05 조회 3,170
07-10-05 조회 4,096
07-10-03 조회 4,226
07-10-03 조회 3,418
07-10-03 조회 4,266
07-10-03 조회 5,283
07-10-03 조회 4,269
07-10-03 조회 3,665
07-10-03 조회 7,357
07-10-03 조회 4,935
07-10-03 조회 7,605
07-10-03 조회 3,702
07-10-03 조회 3,651
07-10-03 조회 3,644
07-10-03 조회 4,686
07-10-03 조회 4,649
07-10-03 조회 3,340
07-10-03 조회 5,197
07-10-03 조회 3,007
07-10-03 조회 2,669
07-10-03 조회 2,723
07-10-03 조회 2,932
07-10-03 조회 2,932
07-10-03 조회 4,753
07-10-02 조회 3,644
07-10-02 조회 3,175
07-10-02 조회 3,508
07-10-02 조회 5,813
07-10-02 조회 3,552
07-10-02 조회 4,170
07-10-02 조회 3,188
07-10-02 조회 4,854
07-10-02 조회 3,107
07-10-02 조회 8,941
07-10-02 조회 4,594
07-10-01 조회 2,556
07-10-01 조회 3,759
07-09-28 조회 4,775
07-09-28 조회 3,651
07-09-27 조회 3,553
07-09-27 조회 4,060
07-09-27 조회 5,110
07-09-27 조회 4,709
07-09-27 조회 3,848
07-09-27 조회 3,255
07-09-27 조회 3,304
07-09-27 조회 3,943
07-09-27 조회 3,273
07-09-15 조회 4,218
07-09-15 조회 2,931
07-09-13 조회 3,446
07-09-13 조회 2,966
07-09-13 조회 3,418
07-09-11 조회 3,646
07-09-09 조회 3,582
07-08-28 조회 3,517
07-08-28 조회 3,393
07-08-23 조회 4,697
07-08-22 조회 2,883
07-08-21 조회 4,672
07-08-21 조회 3,254
07-08-16 조회 6,522
07-08-07 조회 3,442
07-08-04 조회 3,568
07-08-04 조회 2,936
07-08-04 조회 3,344
07-08-04 조회 4,900
07-08-04 조회 2,747
07-08-04 조회 2,952
07-08-01 조회 5,586
07-08-01 조회 5,009
07-07-31 조회 4,475
07-07-31 조회 4,715