[Javascript] IE & NN dom references

Steve White steve at VirtualMechanics.com
Fri Mar 23 13:04:46 CST 2001


The style is not an error, just my code syntax since it references the style
attributes in either NN or IE. I posted an example of scaling at:
http://www.dhtmlmagic.com/test/v2bintro.htm that works in IE and NN. You can
compare the difference. As you noted, NN is just clipping (I guess scaling
was a bit too difficult for them) but it will have to do. The quality in
both NN and IE falls far short of SVG. If you have a player you can compare
the SVG version at: http://www.dhtmlmagic.com/test/v2bintro.svg

Sorry they are not intended to be a works of art, just a proof of concept.

Yours Truly

Steve White
www.VirtualMechanics.com

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Peter-Paul Koch
Sent: Friday, March 23, 2001 11:55 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] IE & NN dom references




>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.


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list