님

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

· 2009-02-09 (월) 16:23:50 · 2758
<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-11-25 조회 3,765
08-11-25 조회 2,957
08-11-25 조회 4,534
08-11-25 조회 4,406
08-11-21 조회 4,386
08-11-21 조회 5,314
08-11-20 조회 3,942
08-11-20 조회 3,755
08-11-19 조회 4,022
08-11-19 조회 4,262
08-11-18 조회 4,046
08-11-15 조회 2,922
08-11-14 조회 3,225
08-11-14 조회 2,893
08-11-14 조회 3,285
08-11-13 조회 3,911
08-11-12 조회 1만
08-11-07 조회 4,615
08-11-07 조회 5,598
08-11-03 조회 3,364
08-11-01 조회 5,078
08-11-01 조회 3,031
08-10-30 조회 2,740
08-10-30 조회 3,670
08-10-30 조회 2,767
08-10-30 조회 3,003
08-10-30 조회 2,867
08-10-29 조회 3,946
08-10-29 조회 2,927
08-10-29 조회 2,461
08-10-20 조회 2,595
08-10-18 조회 4,540
08-10-16 조회 3,596
08-10-16 조회 3,398
08-10-14 조회 2,601
08-10-11 조회 3,901
08-10-11 조회 2,496
08-10-09 조회 2,593
08-10-09 조회 2,750
08-10-09 조회 4,217
08-10-08 조회 3,912
08-10-02 조회 3,853
08-10-02 조회 2,600
08-10-02 조회 2,748
08-09-29 조회 4,679
08-09-29 조회 4,309
08-09-26 조회 5,620
08-09-26 조회 3,592
08-09-26 조회 3,660
08-09-26 조회 2,806
08-09-26 조회 3,846
08-09-26 조회 3,583
08-09-26 조회 4,344
08-09-22 조회 3,906
08-09-22 조회 3,091
08-09-22 조회 4,057
08-09-22 조회 3,018
08-09-22 조회 2,667
08-09-21 조회 3,659
08-09-20 조회 4,236
08-09-20 조회 5,508
08-09-20 조회 4,602
08-09-20 조회 2,927
08-09-20 조회 3,325
08-09-20 조회 3,693
08-09-20 조회 3,067
08-09-20 조회 3,258
08-09-20 조회 4,242
08-09-20 조회 3,742
08-09-20 조회 3,324
08-09-19 조회 5,721
08-09-19 조회 4,496
08-09-19 조회 2,809
08-09-18 조회 5,159
08-09-18 조회 4,240
08-09-18 조회 3,615
08-09-18 조회 2,810
08-09-18 조회 3,726
08-09-18 조회 3,519
08-09-17 조회 3,385
08-09-16 조회 3,332
08-09-10 조회 2,546
08-09-09 조회 3,344
08-09-06 조회 4,235
08-09-06 조회 2,797
08-09-06 조회 3,165
08-09-06 조회 2,826
08-09-06 조회 3,058
08-09-06 조회 2,945
08-09-06 조회 2,916
08-09-05 조회 3,916
08-09-05 조회 3,743
08-09-05 조회 3,569
08-09-05 조회 2,789
08-09-05 조회 3,814
08-09-05 조회 5,776
08-09-05 조회 4,234
08-09-05 조회 3,125
08-09-05 조회 3,277
08-09-05 조회 4,704