It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Get Image Size in FireFox

Get Image Size in FireFox

Postby monkeyvu on Fri Feb 22, 2008 9:59 am

Hi all,

I'm getting image size in FF but I couldn't.

image = new Image();
image.src = 'location';

then image.width and image.height just return 0

It's working with IE but FF. I have already searched but can't find any solution. Please help me, thanks very much :wink:
monkeyvu
 
Posts: 0
Joined: Fri Feb 22, 2008 9:57 am

Postby DDragon on Fri Feb 22, 2008 10:13 am

i found with FireFox you only need the line <script type="text/javascript"></script> or of the sort nothing more with it or FF wont use it..
DDragon
50+ Club
 
Posts: 93
Joined: Wed Jun 20, 2007 12:51 am
Location: Australia


Who is online

Users browsing this forum: No registered users and 6 guests