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

· 17년 전 · 1497
<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,452
16년 전 조회 1,918
16년 전 조회 1,830
16년 전 조회 1,831
16년 전 조회 1,616
16년 전 조회 2,378
16년 전 조회 2,004
16년 전 조회 2,175
16년 전 조회 2,398
16년 전 조회 1,671
16년 전 조회 2,553
16년 전 조회 2,442
16년 전 조회 4,740
16년 전 조회 1,509
16년 전 조회 1,249
16년 전 조회 2,205
16년 전 조회 2,175
16년 전 조회 1,718
16년 전 조회 2,284
16년 전 조회 2,488
16년 전 조회 1,594
16년 전 조회 1,951
16년 전 조회 2,124
16년 전 조회 1,207
16년 전 조회 1,921
16년 전 조회 1,602
16년 전 조회 2,100
16년 전 조회 1,521
16년 전 조회 2,427
16년 전 조회 2,091
16년 전 조회 6,112
16년 전 조회 2,111
16년 전 조회 3,892
16년 전 조회 1,651
16년 전 조회 1,947
16년 전 조회 2,288
16년 전 조회 2,814
16년 전 조회 2,517
16년 전 조회 2,952
16년 전 조회 3,194
16년 전 조회 3,215
17년 전 조회 2,007
17년 전 조회 1,732
17년 전 조회 1,600
17년 전 조회 1,930
17년 전 조회 1,414
17년 전 조회 2,166
17년 전 조회 1,938
17년 전 조회 1,795
17년 전 조회 1,498
17년 전 조회 2,375
17년 전 조회 3,435
17년 전 조회 2,338
17년 전 조회 1,939
17년 전 조회 1,717
17년 전 조회 2,242
17년 전 조회 4,926
17년 전 조회 1,650
17년 전 조회 2,379
17년 전 조회 2,340
17년 전 조회 2,618
17년 전 조회 2,338
17년 전 조회 4,658
17년 전 조회 3,152
17년 전 조회 3,070
17년 전 조회 1,782
17년 전 조회 1,432
17년 전 조회 4,164
17년 전 조회 1,838
17년 전 조회 1,835
17년 전 조회 2,316
17년 전 조회 2,080
17년 전 조회 1,711
17년 전 조회 4,131
17년 전 조회 1,961
17년 전 조회 3,302
17년 전 조회 3,232
17년 전 조회 1,221
17년 전 조회 2,041
17년 전 조회 1,797
17년 전 조회 2,038
17년 전 조회 2,860
17년 전 조회 3,221
17년 전 조회 3,433
17년 전 조회 3,530
17년 전 조회 1,639
17년 전 조회 1,626
17년 전 조회 2,429
17년 전 조회 2,185
17년 전 조회 2,475
17년 전 조회 3,008
17년 전 조회 3,488
17년 전 조회 2,570
17년 전 조회 1,844
17년 전 조회 3,424
17년 전 조회 3,274
17년 전 조회 3,248
17년 전 조회 4,122
17년 전 조회 2,759
17년 전 조회 2,623