Full version: jsB@nk » Utility » Browse-View-Load
URL: https://www.javascriptbank.com/browse-view-load.html
A tool to view path of a file and load it to view.
Full version: jsB@nk » Utility » Browse-View-Load
URL: https://www.javascriptbank.com/browse-view-load.html
<STYLE>.button {BACKGROUND-COLOR: #e0dfe3; COLOR: #000000; FONT-SIZE: xx-small}.file {BACKGROUND-COLOR: #ffffff; COLOR: #000000; FONT-SIZE: xx-small}</STYLE><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<SCRIPT language=JavaScript><!-- Author: Dwayne Rothe (28 Feb 2002 --><!-- http://www.exsiteweb.com ([email protected]) --><!-- Beginfunction PopUp(popage, popname, wd, ht,scroll,resize) {imgname = document.forms[0].elements[0].value;if(imgname == ""){alert("Please select a File");return null;}else{var winl = (screen.width - wd) ;var wint = (screen.height - ht) ;popdim = "left=100,top=100,width=" + (wd) + ",height=" + (ht) + ',scrollbars='+ (scroll)+',resizable='+ (resize)win = window.open(popage, popname, popdim)if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}}<!-- load a file function loadImg() { imgname = document.forms[0].elements[0].value; if(imgname == ""){ alert("Please enter a Filename"); } else { document.forms[0].elements[4].value = imgname; } } --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<FORM name=aform><INPUT class=file name=veiwimg size=40 type=file> <INPUT class=button onclick="javascript:PopUp('file:///' + document.aform.veiwimg.value,'name','550','320','yes','yes')" type=button value=View> <INPUT class=button onclick=loadImg() type=button value=Load> <INPUT class=button type=reset value=Reset><BR><TEXTAREA cols=50 name=text1 rows=10 wordwrap="virtual"></TEXTAREA> </FORM><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->