[Javascript] IE & NN dom references

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Mar 23 10:54:40 CST 2001


>But I did find a way to do it in NN
>
>if(isNav4)
>ob[Cobj].style.resizeTo(width, height);
>else
>{
>ob[Cobj].geom.width  = width;
>ob[Cobj].geom.height = height;
>}

Interesting! I assume the .style is an error, NN4 doesn't know it. However, 
I just tested it and it seems that it doesn't resize the image but only the 
surrounding layer, so that the image is kind of clipped, not truly resized.

Nonetheless an interesting discovery. Thanks.

ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the Javascript mailing list