<SCRIPT LANGUAGE="JavaScript">
<!--
function getPicSize()
{
var pic ="http://image.chinahr.com/2005/sss/images/top.jpg";
var imgs = new Image();
imgs.src = pic;
alert(imgs.fileSize);//9062
alert(imgs.width);
alert(imgs.height);
}
setTimeout("getPicSize()",5000);
//-->
</SCRIPT>
服务器端的:
System.Drawing.Image myImage = System.Drawing.Image.FromFile(图片路径);
string strWidth = myImage.Width;
string strHeight = myImage.Height;
诗词在线
http://www.chinapoesy.com
诗词在线 |唐诗|宋词|元曲|现代诗歌|外国诗歌
126在线阅读网
http://www.Read126.cn
126在线阅读网 人物传记、古典名著、历史书籍。。。
http://www.chinapoesy.com
诗词在线 |唐诗|宋词|元曲|现代诗歌|外国诗歌
126在线阅读网
http://www.Read126.cn
126在线阅读网 人物传记、古典名著、历史书籍。。。