Ok ... does the onResize work with Netscape (I'm using 4.76)? I thought I
had it working at one time but I can't even get this simple script below to
work correctly.  Am I forgetting something or am I wrong in the fact that it
is suppose to work in Netscape?

The layer shows up correctly onLoad but when I resize Netscape the layer
just disappears.

And of course, it works in IE.

--Chris

/////////////////////////////////////////////////////////////

<script language="Javascript">

DynAPI.onLoad=function() {
        backLayer = new DynLayer();
        backLayer.moveTo(2,2);
        backLayer.setWidth(DynAPI.document.getWidth()-4);
        backLayer.setHeight(150);
        backLayer.setBgColor('#000000');
        backLayer.setVisible(true);

        DynAPI.document.addChild(backLayer);
}

DynAPI.onResize=function() {
        backLayer.setWidth(DynAPI.document.getWidth()-4);
}

</script>

/////////////////////////////////////////////////////////////


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to