2
Contributors
5
Replies
6
Views
12 Years
Discussion Span
Last Post by js-x.com
0

if:

<img src="abc.gif" name=myimg>

then:
* document.myimg.width
* document.myimg.src

same syntax for:
border, complete, height, vspace, lowsrc, name, src, vspace, width

methods:
handleEvent()

events:
onAbort, onError, onKeyDown, onKeyPress, onKeyUp, onLoad

1000s of Free Javascripts

0

if the image src is in a text box,then how to calculate width,height,Size of then image

0

this the code
from this path how to calculate the image height and width using javascript
Photo path:<input class="Message" id="filePicture" type="file" name="file" runat="server">

0

you can not.

this code is going to accept an image file which has not been posted to the server yet, nor is it running inside of the DOM.

If you had the image in your page <img src="blah.gif" name="abc"> then it would be accessable inside of the DOM.

There are PHP and Perl [etc] programs that can accept the posted images and determine the sizes...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.