Image Sizes

[Total: 0    Average: 0/5]

This shows how to get the dimensions of an image.

Body Code:

<script type=text/javascript>
var _i = new Image();
_i.src="http://www.js-examples.com/js/pic1.gif";
document.write(_i.height+'x'+_i.width);
</script>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *