님

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

· 2009-02-09 (월) 16:23:50 · 2696
<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,188건
+
제목 글쓴이 날짜 조회
07-07-16 조회 3,127
07-07-06 조회 3,015
07-07-06 조회 3,443
07-06-23 조회 3,271
07-06-16 조회 2,780
07-05-20 조회 4,289
07-05-09 조회 3,466
07-05-09 조회 6,106
07-05-04 조회 2,698
07-04-30 조회 9,833
07-04-27 조회 4,338
07-04-26 조회 3,454
07-04-25 조회 5,297
07-04-18 조회 7,795
07-04-13 조회 3,131
07-04-12 조회 6,642
07-04-12 조회 5,054
07-04-12 조회 3,362
07-04-11 조회 5,726
07-04-05 조회 6,371
07-03-24 조회 4,425
07-03-20 조회 3,748
07-03-18 조회 3,992
07-03-18 조회 4,740
07-03-17 조회 4,242
07-03-16 조회 4,134
07-03-15 조회 5,300
07-03-13 조회 5,407
07-03-13 조회 3,589
07-03-08 조회 4,505
07-03-08 조회 3,989
07-03-08 조회 3,305
07-03-08 조회 4,189
07-03-05 조회 4,449
07-03-04 조회 2,917
07-03-01 조회 5,952
07-02-28 조회 3,234
07-02-27 조회 4,415
07-02-26 조회 3,336
07-02-26 조회 3,044
07-02-23 조회 3,675
07-02-23 조회 3,645
07-02-22 조회 4,028
07-02-22 조회 3,839
07-02-19 조회 3,858
07-02-17 조회 4,876
07-02-14 조회 8,184
07-02-12 조회 3,949
07-02-10 조회 3,573
07-02-02 조회 3,817
07-01-31 조회 3,491
07-01-29 조회 3,350
07-01-25 조회 5,126
07-01-21 조회 3,273
07-01-19 조회 3,058
06-12-15 조회 4,070
06-12-15 조회 4,475
06-12-15 조회 2,963
06-12-15 조회 4,513
06-12-15 조회 3,402
06-12-15 조회 4,102
06-12-15 조회 3,050
06-12-15 조회 2,779
06-12-15 조회 4,638
06-12-15 조회 3,184
06-12-15 조회 3,287
06-12-07 조회 4,739
06-12-07 조회 4,021
06-12-04 조회 4,670
06-11-27 조회 3,712
06-11-21 조회 4,023
06-11-15 조회 3,455
06-11-04 조회 3,347
06-10-29 조회 4,001
06-10-13 조회 3,869
06-10-13 조회 4,228
06-10-13 조회 4,182
06-10-12 조회 5,372
06-10-12 조회 4,290
06-10-04 조회 3,791
06-10-02 조회 4,569
06-09-29 조회 3,057
06-09-26 조회 3,397
06-09-26 조회 3,658
06-09-26 조회 3,304
06-09-26 조회 3,451
06-09-26 조회 4,359
06-09-25 조회 4,662
06-09-22 조회 5,000
06-09-22 조회 3,565
06-09-21 조회 4,341
06-09-21 조회 4,346
06-09-21 조회 3,551
06-09-21 조회 5,202
06-09-21 조회 3,730
06-09-21 조회 3,460
06-09-20 조회 3,040
06-09-15 조회 3,168
06-09-13 조회 3,484
06-09-11 조회 3,285