Hi!

I'm working with images, and if I don't specify an width and height to an
image it fits the exactly size of the image (didn't tested for images larger
then the screen).

What I would like to do is get the width of this loaded image, so I can
calculate to put it in the center of the screen with (screen/width/2 -
image.width/2),
any idea how to get loaded image's width?

Trying with:

var image = getElementById('loadingImage');


image.width returns nothing..


*
Wellington B. de Carvalho
*
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
XUL News Wire      - http://xulnews.com
XUL Job Postings   - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org  
_______________________________________________
xul-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xul-talk

Reply via email to