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

· 17년 전 · 1352
<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,311
16년 전 조회 1,779
16년 전 조회 1,678
16년 전 조회 1,687
16년 전 조회 1,484
16년 전 조회 2,245
16년 전 조회 1,868
16년 전 조회 2,036
16년 전 조회 2,246
16년 전 조회 1,541
16년 전 조회 2,368
16년 전 조회 2,310
16년 전 조회 4,592
16년 전 조회 1,358
16년 전 조회 1,115
16년 전 조회 2,069
16년 전 조회 2,040
16년 전 조회 1,575
16년 전 조회 2,102
16년 전 조회 2,343
16년 전 조회 1,454
16년 전 조회 1,798
16년 전 조회 1,983
16년 전 조회 1,073
16년 전 조회 1,753
16년 전 조회 1,462
16년 전 조회 1,968
16년 전 조회 1,377
16년 전 조회 2,266
16년 전 조회 1,957
16년 전 조회 5,929
16년 전 조회 1,976
16년 전 조회 3,744
16년 전 조회 1,533
16년 전 조회 1,816
16년 전 조회 2,128
16년 전 조회 2,672
16년 전 조회 2,373
16년 전 조회 2,806
16년 전 조회 3,049
16년 전 조회 3,074
16년 전 조회 1,882
16년 전 조회 1,599
16년 전 조회 1,469
16년 전 조회 1,787
16년 전 조회 1,265
16년 전 조회 2,028
16년 전 조회 1,799
17년 전 조회 1,669
17년 전 조회 1,353
17년 전 조회 2,228
17년 전 조회 3,290
17년 전 조회 2,216
17년 전 조회 1,799
17년 전 조회 1,567
17년 전 조회 2,098
17년 전 조회 4,786
17년 전 조회 1,477
17년 전 조회 2,204
17년 전 조회 2,181
17년 전 조회 2,459
17년 전 조회 2,204
17년 전 조회 4,487
17년 전 조회 2,991
17년 전 조회 2,934
17년 전 조회 1,653
17년 전 조회 1,300
17년 전 조회 4,015
17년 전 조회 1,676
17년 전 조회 1,675
17년 전 조회 2,170
17년 전 조회 1,946
17년 전 조회 1,568
17년 전 조회 3,978
17년 전 조회 1,815
17년 전 조회 3,193
17년 전 조회 3,062
17년 전 조회 1,094
17년 전 조회 1,907
17년 전 조회 1,663
17년 전 조회 1,911
17년 전 조회 2,695
17년 전 조회 3,090
17년 전 조회 3,272
17년 전 조회 3,382
17년 전 조회 1,522
17년 전 조회 1,479
17년 전 조회 2,313
17년 전 조회 2,036
17년 전 조회 2,356
17년 전 조회 2,874
17년 전 조회 3,325
17년 전 조회 2,421
17년 전 조회 1,689
17년 전 조회 3,269
17년 전 조회 3,126
17년 전 조회 3,107
17년 전 조회 3,972
17년 전 조회 2,643
17년 전 조회 2,462