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

· 16년 전 · 1299
<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,246
16년 전 조회 1,718
16년 전 조회 1,616
16년 전 조회 1,631
16년 전 조회 1,420
16년 전 조회 2,174
16년 전 조회 1,817
16년 전 조회 1,971
16년 전 조회 2,184
16년 전 조회 1,469
16년 전 조회 2,306
16년 전 조회 2,257
16년 전 조회 4,531
16년 전 조회 1,293
16년 전 조회 1,049
16년 전 조회 2,009
16년 전 조회 1,976
16년 전 조회 1,505
16년 전 조회 2,036
16년 전 조회 2,273
16년 전 조회 1,387
16년 전 조회 1,729
16년 전 조회 1,923
16년 전 조회 1,008
16년 전 조회 1,687
16년 전 조회 1,406
16년 전 조회 1,908
16년 전 조회 1,326
16년 전 조회 2,203
16년 전 조회 1,890
16년 전 조회 5,871
16년 전 조회 1,915
16년 전 조회 3,685
16년 전 조회 1,465
16년 전 조회 1,752
16년 전 조회 2,069
16년 전 조회 2,611
16년 전 조회 2,309
16년 전 조회 2,750
16년 전 조회 2,990
16년 전 조회 3,015
16년 전 조회 1,821
16년 전 조회 1,541
16년 전 조회 1,413
16년 전 조회 1,723
16년 전 조회 1,207
16년 전 조회 1,966
16년 전 조회 1,735
16년 전 조회 1,611
16년 전 조회 1,300
16년 전 조회 2,171
16년 전 조회 3,230
16년 전 조회 2,165
16년 전 조회 1,743
16년 전 조회 1,510
16년 전 조회 2,043
16년 전 조회 4,727
16년 전 조회 1,414
17년 전 조회 2,151
17년 전 조회 2,132
17년 전 조회 2,405
17년 전 조회 2,151
17년 전 조회 4,432
17년 전 조회 2,933
17년 전 조회 2,867
17년 전 조회 1,600
17년 전 조회 1,241
17년 전 조회 3,947
17년 전 조회 1,617
17년 전 조회 1,611
17년 전 조회 2,111
17년 전 조회 1,882
17년 전 조회 1,495
17년 전 조회 3,919
17년 전 조회 1,757
17년 전 조회 3,130
17년 전 조회 3,009
17년 전 조회 1,042
17년 전 조회 1,850
17년 전 조회 1,591
17년 전 조회 1,852
17년 전 조회 2,643
17년 전 조회 3,023
17년 전 조회 3,217
17년 전 조회 3,327
17년 전 조회 1,462
17년 전 조회 1,420
17년 전 조회 2,251
17년 전 조회 1,975
17년 전 조회 2,288
17년 전 조회 2,815
17년 전 조회 3,264
17년 전 조회 2,367
17년 전 조회 1,634
17년 전 조회 3,206
17년 전 조회 3,072
17년 전 조회 3,046
17년 전 조회 3,914
17년 전 조회 2,588
17년 전 조회 2,406
🐛 버그신고