English
<!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs--> <!-- Complete HTML code--> <html > <head> <title> Image Browser</title> <script> function ViewImage(form) { photoHeight=form.height.value photoWidth=form.width.value var urlType=form.url.value var LocalurlType=urlType. indexOf('http://')==-1 if(LocalurlType) urlType="file:///"+urlType win=window.open("","","width="+photoWidth+",height= "+photoHeight+"") win.document.write("<html><head><title>The picture you want to browse</title></head><body>") win.document.write('<div style ="position:absolute;width:'+photoWidth+';height:'+photoHeight+';left:0px;top:0px">') win.document.write("<img src="+urlType+" width="+ photoWidth+" height="+photoHeight+"></div></body></html>") win.document.close(); } </script> </head> <body> <center> Please enter what you want Browse the URL where the image is located. If the image is on your local computer, press the browse button <p> <form> <input type=file size=40 name=url> <p> Height:<input type=text name=height size= 3 value=300> Width: <input type=text name=width size=3 value=250> </p> <input type=button value="Display image" onclick="ViewImage(this.form)"> </p> form> </body> </html> <br><br><br> <p><font color=red>////Author: School of Software, Nanyang Institute of Technology, Ren Binyu Contact: 0377-3114024,0373 -7916269 </font></p>