yes, you can know the dimensions of the image, try<form name="form1">
<input type="file" name="file1" onpropertychange="document.all('imgtest').src=this.value;"><input type="text" name="imgsize" readonly>
</form>
<img id="imgtest"
onload="document.form1.imgsize.value=this.width+'x'+this.height;"
onabort="document.form1.imgsize.value='0x0';"
onerror="document.form1.imgsize.value='0x0';">
<input type="file" name="file1" onpropertychange="document.all('imgtest').src=this.value;"><input type="text" name="imgsize" readonly>
</form>
<img id="imgtest"
onload="document.form1.imgsize.value=this.width+'x'+this.height;"
onabort="document.form1.imgsize.value='0x0';"
onerror="document.form1.imgsize.value='0x0';">
解决方案 »
- smarty 的正则问题
- zend studio调试parse_ini_file时的怪异问题
- 如何实现一种动态查询显示
- 请教~~为什么上传服务器后验证码出不来了呢?
- 在Smarty中如何自定义一个函数,类似CSubStr(str,start,length)??
- 求 在表单中不可以输入中文字 菜鸟提问
- win32版的PHP写的程序,放到linux服务器里可以正常运行吗?
- 如果使在类似于发帖的这种textbox里,可以自行制作表格?
- 求助:函数代替页面后导致的frame问题
- php--curl 与ajax的区别
- 搜索局域网内已知的的ftp站点是否开着,用脚本能不能做,怎么做?
- 请高手帮忙。在php中如何连接SQL数据库。
上面的这个可以选择*.*啊,谢谢.
<input type=file accept="image/gif">
但好象到目前为止,还没有哪个浏览器支持