Finding The Size Of Images Using Javascript
If you know some javascript and some HTML then you can go forward….Those who need explanations plz feel free to mail me to balumohanv@gmail.com<script language=”JavaScript”>function getImgSize(imgSrc){var newImg = new Image();newImg.src = imgSrc;var height = newImg.height;var width = newImg.width;alert (’The image size is ‘+width+’*'+height);}</script><img src=”1.jpg” id=”demoImg” /><button onclick=”getImgSize(document.getElementById(’demoImg’).src);” value=”Click Me”></button>
Related posts:
- Caching of images using javascript image object
- Replacing images with time intervals using jquery
- Automatic Ajax Loading Images With Prototype
- Displaying or changing images each day
- Water mark images using PHP 5 and GD Library
- Finding size of a directory using php
- Simple Javascript Slideshow
