I got many ways to get height and width of an image, but all methods only work when image are in cache. But finally I got solution to get image height and width even image does not present in cache.
<script type="text/javascript" language="javascript1.2">
var imgHeight;
var imgWidth;
function findHHandWW() {
imgHeight = this.width;imgWidth = this.width;
return true;
}
function showImage(imgPath) {
var myImage = new Image();
myImage.name = imgPath;
myImage.onload = findHHandWW;
myImage.src = imgPath;
}
</script>
Thanks,
Binod Suman
http://binodsuman.blogspot.com/2009/...-of-image.html