ภาษาไทย
<!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs--> <!-- กรอกโค้ด HTML--> <html > <head> <title> เบราว์เซอร์รูปภาพ</title> <script> ฟังก์ชั่น ViewImage(form) { photoHeight=form.height.value photoWidth=form.width.value var urlType=form.url.value var LocalurlType=urlType indexOf( 'http://')==-1 ถ้า(LocalurlType) urlType="file:///"+urlType win=window.open("","","width="+photoWidth+",height= "+ photoHeight+"") win.document.write("<html><head><title>รูปภาพที่คุณต้องการเรียกดู</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> กรุณาระบุสิ่งที่คุณต้องการ เรียกดู URL ที่มีรูปภาพอยู่ หากรูปภาพนั้นอยู่บนเครื่องคอมพิวเตอร์ของคุณ ให้กดปุ่มเรียกดู <p> <form> <input type=file size=40 name=url> <p> Height:<input type=text name=height size= 3 value=300> ความกว้าง: <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>////ผู้แต่ง: School of Software, Nanyang Institute of Technology, เร็น บินยู ติดต่อ: 0377-3114024,0373 -7916269 </font></p>