님

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

· 2009-02-09 (월) 16:23:50 · 2666
<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,188건
+
제목 글쓴이 날짜 조회
11-10-25 조회 2,491
11-10-18 조회 4,017
11-10-18 조회 2,394
11-10-15 조회 3,617
11-10-10 조회 2,671
11-10-02 조회 2,588
11-09-28 조회 2,403
11-09-24 조회 2,487
11-09-22 조회 2,387
11-09-05 조회 2,874
11-08-31 조회 2,248
11-08-31 조회 2,557
11-08-31 조회 2,412
11-08-29 조회 2,962
11-08-28 조회 2,456
11-08-25 조회 2,507
11-08-17 조회 2,222
11-08-16 조회 2,459
11-08-11 조회 2,912
11-08-07 조회 2,627
11-08-03 조회 2,334
11-07-22 조회 2,080
11-07-12 조회 3,300
11-06-27 조회 2,082
11-06-01 조회 1,749
11-05-17 조회 2,536
11-05-01 조회 2,605
11-04-28 조회 2,892
11-04-28 조회 2,941
11-04-13 조회 2,600
11-03-27 조회 2,725
11-03-27 조회 2,602
11-03-14 조회 2,015
11-03-02 조회 2,339
11-03-02 조회 2,568
11-02-27 조회 2,998
11-02-23 조회 2,378
11-02-19 조회 2,518
11-02-14 조회 4,133
11-02-03 조회 2,926
11-01-24 조회 3,870
11-01-04 조회 2,400
10-12-08 조회 5,409
10-11-15 조회 2,420
10-11-14 조회 2,592
10-11-14 조회 3,611
10-10-29 조회 3,684
10-10-19 조회 2,697
10-10-07 조회 2,524
10-10-05 조회 4,442
10-09-18 조회 2,740
10-09-18 조회 2,479
10-09-17 조회 4,885
10-09-15 조회 2,823
10-09-15 조회 2,350
10-09-15 조회 2,840
10-09-15 조회 2,673
10-09-11 조회 3,998
10-09-11 조회 2,506
10-09-11 조회 2,543
10-09-07 조회 3,818
10-09-07 조회 3,353
10-08-29 조회 2,814
10-07-01 조회 3,062
10-06-30 조회 2,466
10-06-30 조회 2,649
10-06-30 조회 3,001
10-06-13 조회 2,036
10-04-15 조회 3,208
10-04-04 조회 3,438
10-02-23 조회 3,532
10-02-09 조회 3,139
10-01-25 조회 2,646
10-01-25 조회 2,744
09-12-27 조회 4,393
09-11-23 조회 3,614
09-11-20 조회 4,849
09-08-30 조회 3,048
09-08-30 조회 3,044
09-08-12 조회 3,011
09-07-22 조회 4,073
09-07-22 조회 4,719
09-07-15 조회 5,889
09-07-11 조회 2,964
09-06-17 조회 2,706
09-06-15 조회 2,993
09-05-29 조회 3,271
09-05-11 조회 5,909
09-05-08 조회 2,665
09-04-30 조회 3,781
09-04-17 조회 3,101
09-04-04 조회 3,281
09-03-05 조회 3,667
09-02-09 조회 3,636
09-02-03 조회 6,140
08-12-27 조회 3,204
08-12-20 조회 4,295
08-11-21 조회 5,255
08-11-14 조회 2,823
08-11-03 조회 3,285