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: ASM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid>
Date: Sat Apr 22 2006 - 02:38:00 CEST

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
  }

-- 
Stephane Moriaux et son [moins] vieux Mac
Received on Mon May 1 05:14:20 2006