Guest_imported
New member
- Jan 1, 1970
- 0
The source of Image Viewer are as follow:
<html>
<head>
<title>Image Viewer</title>
<script>
function change()
{
document.image.src = "file:///" + document.form.source.value
document.image.height = document.form.height.value
document.image.width = document.form.width.value
}
</script>
<body bgcolor="white" text="black">
<center>
<hr>
<p>
<center>
<form name="form">
<input type="file" value="Image Source" name="source" size=40>
<p>Height: <input type="text" value="200" name="height" size="3"> Width: <input type="text" value="150" name="width" size="3">
<p><input type="button" value="View Image" onClick="change()">
</form>
<p><hr>
<p><img src="blah" name="image" height="" width="">
</body>
</html>
The error of the image viwer :
illegal URL method 'file:'.
Can anyone suggest a remedy, please?
Thanks in advance,
<html>
<head>
<title>Image Viewer</title>
<script>
function change()
{
document.image.src = "file:///" + document.form.source.value
document.image.height = document.form.height.value
document.image.width = document.form.width.value
}
</script>
<body bgcolor="white" text="black">
<center>
<hr>
<p>
<center>
<form name="form">
<input type="file" value="Image Source" name="source" size=40>
<p>Height: <input type="text" value="200" name="height" size="3"> Width: <input type="text" value="150" name="width" size="3">
<p><input type="button" value="View Image" onClick="change()">
</form>
<p><hr>
<p><img src="blah" name="image" height="" width="">
</body>
</html>
The error of the image viwer :
illegal URL method 'file:'.
Can anyone suggest a remedy, please?
Thanks in advance,