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

· 17년 전 · 1507
<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에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
16년 전 조회 1,463
16년 전 조회 1,930
16년 전 조회 1,844
16년 전 조회 1,841
16년 전 조회 1,628
16년 전 조회 2,393
16년 전 조회 2,012
16년 전 조회 2,183
16년 전 조회 2,409
16년 전 조회 1,682
16년 전 조회 2,567
16년 전 조회 2,454
16년 전 조회 4,745
16년 전 조회 1,515
16년 전 조회 1,264
16년 전 조회 2,219
16년 전 조회 2,181
16년 전 조회 1,723
16년 전 조회 2,300
16년 전 조회 2,503
16년 전 조회 1,603
16년 전 조회 1,962
16년 전 조회 2,130
16년 전 조회 1,222
16년 전 조회 1,929
16년 전 조회 1,613
16년 전 조회 2,109
16년 전 조회 1,527
16년 전 조회 2,431
16년 전 조회 2,098
16년 전 조회 6,128
16년 전 조회 2,118
16년 전 조회 3,904
16년 전 조회 1,658
16년 전 조회 1,956
16년 전 조회 2,300
16년 전 조회 2,823
16년 전 조회 2,523
16년 전 조회 2,959
16년 전 조회 3,205
16년 전 조회 3,223
17년 전 조회 2,020
17년 전 조회 1,743
17년 전 조회 1,609
17년 전 조회 1,937
17년 전 조회 1,419
17년 전 조회 2,178
17년 전 조회 1,950
17년 전 조회 1,804
17년 전 조회 1,508
17년 전 조회 2,383
17년 전 조회 3,443
17년 전 조회 2,351
17년 전 조회 1,950
17년 전 조회 1,722
17년 전 조회 2,251
17년 전 조회 4,938
17년 전 조회 1,656
17년 전 조회 2,392
17년 전 조회 2,349
17년 전 조회 2,629
17년 전 조회 2,344
17년 전 조회 4,667
17년 전 조회 3,163
17년 전 조회 3,080
17년 전 조회 1,787
17년 전 조회 1,441
17년 전 조회 4,173
17년 전 조회 1,843
17년 전 조회 1,846
17년 전 조회 2,327
17년 전 조회 2,086
17년 전 조회 1,726
17년 전 조회 4,145
17년 전 조회 1,968
17년 전 조회 3,311
17년 전 조회 3,239
17년 전 조회 1,230
17년 전 조회 2,048
17년 전 조회 1,805
17년 전 조회 2,053
17년 전 조회 2,867
17년 전 조회 3,235
17년 전 조회 3,440
17년 전 조회 3,543
17년 전 조회 1,647
17년 전 조회 1,635
17년 전 조회 2,439
17년 전 조회 2,199
17년 전 조회 2,486
17년 전 조회 3,020
17년 전 조회 3,501
17년 전 조회 2,583
17년 전 조회 1,858
17년 전 조회 3,437
17년 전 조회 3,285
17년 전 조회 3,257
17년 전 조회 4,130
17년 전 조회 2,773
17년 전 조회 2,638