function getFileSize(filePath){ var image=new Image(); image.dynsrc=filePath; alert(image.fileSize); } function getImageW(id){ var image=document.getElementById(id); alert(image.offsetWidth); } function getImageH(id){ var image=document.getElementById(id); alert(image.offsetHeight); }
function getFileSize(filePath){
var image=new Image();
image.dynsrc=filePath;
alert(image.fileSize);
}
function getImageW(id){
var image=document.getElementById(id);
alert(image.offsetWidth);
}
function getImageH(id){
var image=document.getElementById(id);
alert(image.offsetHeight);
}