1:
<HTML>
<Head>
<Title> new document </title>
</Head>
<Script language = "JavaScript">
<! --
Function showimg ()
{
Document. myform. myimg. src = Document. myform. filename. value;
}
// -->
</SCRIPT>
<Body>
<Form name = myform method = post action = "">
<Input name = filename type = "file" onchange = setTimeout ('showimg () ', 500)>
</Form>
</Body>
</Html>
2:
In this case, yes. If you want to limit the size
Function showimg ()
{
Document. myform. myimg. src = Document. myform. filename. value;
Document. myform. myimg. width =;
Document. myform. myimg. Height =;
}
3:
<HTML>
<Head>
<Title> new document </title>
<Meta name = "generator" content = "editplus">
<Meta name = "author" content = "">
<Meta name = "keywords" content = "">
<Meta name = "Description" content = "">
</Head>
<Body>
<input type = File ID = B> <button onclick = 'aa () '> browse </button>
</Body>
</Html>
<Script language = "JavaScript">
<! --
Function AA (){
Document. getelementbyid ("A"). src = Document. getelementbyid ("B"). value;
}
// -->
</SCRIPT>
4:
Or
Only the width or height is set, and it is automatically adjusted.