<SCRIPT language=javascript>
function index_image_valid(){
document.pho_up.indeximg.src=document.pho_up.pho_index.value;
imagewidth=document.pho_up.indeximg.width;
imageheigth=document.pho_up.indeximg.height;
alert ("宽:"+imagewidth+"\n高:"+imageheigth);
}
</script>
</head>
<form name="pho_up" method="post" enctype="multipart/form-data">
<input type="file" name="pho_index" size="20" class=input Onchange="javascript:index_image_valid();">
<img name=indeximg>
</form>
function index_image_valid(){
document.pho_up.indeximg.src=document.pho_up.pho_index.value;
imagewidth=document.pho_up.indeximg.width;
imageheigth=document.pho_up.indeximg.height;
alert ("宽:"+imagewidth+"\n高:"+imageheigth);
}
</script>
</head>
<form name="pho_up" method="post" enctype="multipart/form-data">
<input type="file" name="pho_index" size="20" class=input Onchange="javascript:index_image_valid();">
<img name=indeximg>
</form>
解决方案 »
- htmlfile: 拒绝访问。 javascript
- ExtJS.4.0 预览版发布了,我试了一下怎么比3.3跑起来还慢呢?
- 关于提示框的几个问题
- [#加急#]firefox点击框架内的链接
- js怎样可以捕作到鼠标当前点击的是什么对象,,可以是按钮,文本框,或者图片或者其他的
- WawaCodePro代码生成器v1.0 发布了,纯脚本写的,本来想用JS写来着,换成VBS了
- textarea中的文本被选中的问题!
- 怎样隐藏掉表单中的单选框、下拉框或者按钮?
- 如何实现一个onclick(),使在页面制定的地方显示制定的内容!!!
- 各位高手快来帮忙!
- 弄了个选择月份选择的小控件 ,转成js时候出现错误
- 模态窗口传值问题?
<script>
function hehe(m){
str='宽:'+m.offsetWidth+'\r\n高:'+m.offsetHeight
str+='\r\n大小:'+m.fileSize+'字节'
alert(str)
}
</script>
onload="alert('filesize : '+ fileSize +' Byte\r\nwidth : '+ clientWidth + '\r\nheight : '+ clientHeight)">