If you know some javascript and some HTML then you can go forward….Those who need explanations plz feel free to contact me
<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>
No comments:
Post a Comment