님

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

· 2009-02-09 (월) 16:23:50 · 2728
<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-05-15 조회 4,293
10-05-10 조회 2,983
10-04-29 조회 5,696
10-04-28 조회 3,899
10-04-17 조회 4,826
10-04-15 조회 3,275
10-04-04 조회 3,511
10-04-02 조회 2,804
10-03-23 조회 5,982
10-03-19 조회 5,521
10-03-05 조회 5,280
10-03-01 조회 6,953
10-02-27 조회 5,118
10-02-26 조회 3,515
10-02-23 조회 3,465
10-02-23 조회 3,620
10-02-19 조회 3,315
10-02-17 조회 5,727
10-02-17 조회 4,452
10-02-17 조회 3,877
10-02-12 조회 3,200
10-02-12 조회 3,539
10-02-12 조회 3,869
10-02-11 조회 3,007
10-02-11 조회 4,086
10-02-09 조회 3,386
10-02-09 조회 3,493
10-02-09 조회 3,193
10-02-09 조회 3,855
10-02-09 조회 3,129
10-02-09 조회 3,473
10-01-26 조회 3,585
10-01-25 조회 2,715
10-01-25 조회 2,813
10-01-23 조회 3,418
10-01-23 조회 6,932
10-01-20 조회 3,148
10-01-19 조회 3,630
10-01-13 조회 3,834
10-01-07 조회 3,017
10-01-07 조회 2,801
10-01-07 조회 3,774
10-01-07 조회 6,483
09-12-31 조회 3,775
09-12-27 조회 4,459
09-12-18 조회 3,257
09-12-14 조회 5,270
09-12-14 조회 6,152
09-12-06 조회 4,864
09-11-26 조회 3,782
09-11-24 조회 3,918
09-11-24 조회 4,342
09-11-23 조회 3,680
09-11-21 조회 7,038
09-11-20 조회 4,912
09-11-19 조회 2,829
09-11-19 조회 3,194
09-11-13 조회 6,662
09-11-11 조회 3,790
09-11-09 조회 4,811
09-11-09 조회 4,086
09-11-09 조회 2,979
09-11-04 조회 6,810
09-10-26 조회 3,941
09-10-10 조회 7,431
09-10-09 조회 3,444
09-10-08 조회 5,407
09-09-19 조회 4,475
09-09-15 조회 3,614
09-09-14 조회 3,645
09-09-11 조회 5,842
09-09-04 조회 4,896
09-08-31 조회 4,247
09-08-31 조회 4,454
09-08-30 조회 3,522
09-08-30 조회 3,278
09-08-30 조회 3,119
09-08-30 조회 2,804
09-08-30 조회 3,109
09-08-30 조회 3,336
09-08-30 조회 3,041
09-08-16 조회 6,369
09-08-14 조회 5,343
09-08-12 조회 3,307
09-08-12 조회 3,085
09-08-12 조회 3,800
09-07-24 조회 6,049
09-07-23 조회 5,106
09-07-22 조회 4,183
09-07-22 조회 5,758
09-07-22 조회 4,784
09-07-22 조회 2,927
09-07-21 조회 2,823
09-07-21 조회 3,460
09-07-19 조회 3,340
09-07-17 조회 4,049
09-07-17 조회 3,584
09-07-17 조회 2,846
09-07-15 조회 5,935
09-07-11 조회 3,017