Re: <img> width height
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: <img> width height

From: News <warren@no_S_P_A_M_wyght.com>
Date: Sat Apr 22 2006 - 22:45:20 CEST

ASM wrote:
> News a écrit :
>>
>> Nope did not correct the problem, if I take out these two lines
>>
>> var myWidth=myImage.style.width;
>> var myHeight=myHeight.style.height;
>
> Hu ?
>
> myHeight=myHeight
>
> from where comes this 2nd myHeight ?
>
> would be better with the image 'myImag' , no ?
>
> var myWidth=myImage.style.width; //attempt to capture width of <img>
> var myHeight=myImage.style.height; //attempt to capture height of
> <img> // ^^^^^^^
> alert("myWidth+, +myHeight"); //show if I this function works
> }

Greif I HATE it when I make stupid mistakes and simply cannot see them. Yup
it works and I have egg on my face.

Thanks and have a great weekend

-- 
Totus possum, totum Deum.
Totus ero, totum meum.
WSW
Received on Mon May 1 05:15:39 2006