님

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

· 2009-02-09 (월) 16:23:50 · 2742
<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-09-17 조회 2,350
10-09-16 조회 3,435
10-09-16 조회 2,159
10-09-16 조회 3,293
10-09-16 조회 2,235
10-09-16 조회 3,920
10-09-16 조회 2,175
10-09-16 조회 2,661
10-09-16 조회 2,177
10-09-15 조회 4,510
10-09-15 조회 2,866
10-09-15 조회 2,856
10-09-15 조회 2,860
10-09-15 조회 2,893
10-09-15 조회 2,641
10-09-15 조회 3,350
10-09-15 조회 2,850
10-09-15 조회 2,425
10-09-15 조회 4,283
10-09-15 조회 2,700
10-09-15 조회 2,914
10-09-15 조회 2,616
10-09-15 조회 3,519
10-09-15 조회 3,530
10-09-15 조회 3,188
10-09-15 조회 2,541
10-09-15 조회 2,744
10-09-15 조회 2,408
10-09-15 조회 2,419
10-09-15 조회 2,611
10-09-14 조회 4,133
10-09-11 조회 4,071
10-09-11 조회 3,001
10-09-11 조회 2,515
10-09-11 조회 2,707
10-09-11 조회 2,693
10-09-11 조회 2,572
10-09-11 조회 2,487
10-09-11 조회 2,387
10-09-11 조회 2,736
10-09-11 조회 2,834
10-09-11 조회 2,462
10-09-11 조회 2,461
10-09-11 조회 2,643
10-09-11 조회 3,112
10-09-11 조회 2,622
10-09-08 조회 3,002
10-09-08 조회 2,735
10-09-07 조회 3,512
10-09-07 조회 4,573
10-09-07 조회 3,898
10-09-07 조회 2,450
10-09-07 조회 3,432
10-09-07 조회 3,723
10-09-04 조회 2,989
10-08-29 조회 2,877
10-08-27 조회 4,179
10-08-27 조회 4,185
10-08-20 조회 7,059
10-08-06 조회 2,974
10-07-30 조회 5,736
10-07-27 조회 2,840
10-07-15 조회 3,179
10-07-06 조회 3,253
10-07-01 조회 3,132
10-07-01 조회 2,656
10-07-01 조회 2,889
10-07-01 조회 3,146
10-06-30 조회 3,035
10-06-30 조회 3,907
10-06-30 조회 2,900
10-06-30 조회 3,008
10-06-30 조회 2,468
10-06-30 조회 2,593
10-06-30 조회 2,611
10-06-30 조회 2,539
10-06-30 조회 2,538
10-06-30 조회 2,564
10-06-30 조회 2,706
10-06-30 조회 2,724
10-06-30 조회 4,134
10-06-30 조회 2,478
10-06-30 조회 3,158
10-06-30 조회 3,063
10-06-17 조회 3,167
10-06-16 조회 2,863
10-06-14 조회 3,431
10-06-13 조회 2,123
10-06-11 조회 2,776
10-06-11 조회 2,678
10-06-11 조회 4,388
10-06-11 조회 4,773
10-06-11 조회 3,459
10-06-01 조회 2,955
10-05-31 조회 3,659
10-05-31 조회 3,076
10-05-31 조회 2,639
10-05-22 조회 5,312
10-05-18 조회 2,996
10-05-18 조회 3,025