This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

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>

VN:F [1.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Caching of images using javascript image object
  2. Replacing images with time intervals using jquery
  3. Automatic Ajax Loading Images With Prototype
  4. Displaying or changing images each day
  5. Water mark images using PHP 5 and GD Library
  6. Finding size of a directory using php
  7. Simple Javascript Slideshow

Leave a Reply

Comments (required)

Spam Protected