日本語
<!-- http://bbs.downcodes.com--> <!-- この効果を完了するために必要な 2 つの最初のステップ:<head> 領域に次の代コードを配置します --> <SCRIPT LANGUAGE="JavaScript" > <!-- 関数 ViewImage(form) の開始 { ix = form.width.value; iy = フォーム.高さ.値; ifile = フォーム.url.値; NS = (ドキュメント.レイヤー) ? 1:0; localurl = ifile.indexOf('http://') == -1; if (NS && localurl) ifile = "file:///" + ifile;ヴァール勝利。 var sWidth; var sHeight; win = window.open("","","width="+ix+",height="+iy+",menubar=no,toolbar=no,top=100,left=100"); if (NS) { sWidth = win.innerWidth; sHeight = win.innerHeight; } else { sWidth = win.document.body.clientWidth; sHeight = win.document.body.clientHeight; win.document.open(); win.document.write("<html><head></head><body onBlur=this.close();>"); win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">'); win.document.write("<img src="+ifile+" width=" + ix + " height=" + iy + "></div></body></html>"); win.document.close(); } // 終了 --> </script> <!--第二步:<body> 領域中へ下面代码を配置 --> <div align="center"> <form name=imageform> <input name= url type=file size=40> <p> 高さ: <input name=height type=text value="200" size=3> 幅: <input name=width type=text value="150" size=3> < p> <input type=button value="画像の表示" onClick="ViewImage(this.form);"> </form> </div>