I have found that in some case NS just doesn't like absolute positioning..
try relative
----- Original Message ----- 
From: "Jon Andersen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 1:33 PM
Subject: RE: [Dynapi-Help] ScrollPane widget + inline layer in Netscape?


> I tried setting the absolute position in two ways:
> 
> 1.  Setting it in the style attribute of the DIV, changing it to: 
> style="position: absolute; top: 50px; left: 50px"
> 2.  Creating a CSS style specifier in the HEAD:
> #layer1 {position:absolute; top: 50px; left: 50px; }
> 
> Using either or both of these to set the position of the layer, still
> doesn't affect NS behavior of not displaying the layer in the ScrollPane.
> 
> -Jon
>  
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Doug Melvin
> Sent: Tuesday, January 30, 2001 7:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Help] ScrollPane widget + inline layer in Netscape?
> 
> 
> > <div id="layer1" style="position: absolute;">
> this is a problem I came across a few months ago.
> The problem is that you are setting the div to have an absolute position,
> but you are then not telling it what it's position is.
> 
> 
> > I would like to use a ScrollPane with an inline layer (defined by a DIV
> > tag).  This works fine in IE 5.5, but under NS 4.76 it appears that the
> > content layer is present but invisible.  Below is sample code which is
> just
> > a slightly modified version of examples/dynapi.gui.scrollpane.html.
> >
> > Thanks for the help!
> >
> > <html>
> > <head>
> > <title>DynAPI Examples - ScrollPane</title>
> > <script language="JavaScript" src="../src/dynapi.js"></script>
> > <script language="Javascript">
> > DynAPI.setLibraryPath('../src/lib/');
> > DynAPI.include('dynapi.api.*');
> > DynAPI.include('dynapi.ext.inline.js')
> > DynAPI.include('dynapi.util.thread.js');
> > DynAPI.include('dynapi.util.pathanim.js');
> > DynAPI.include('dynapi.gui.dynimage.js');
> > DynAPI.include('dynapi.gui.button.js');
> > DynAPI.include('dynapi.gui.scrollbar.js');
> > DynAPI.include('dynapi.gui.viewport.js');
> > DynAPI.include('dynapi.gui.scrollpane.js');
> > DynAPI.include('dynapi.gui.label.js');
> > </script>
> > <script language="Javascript">
> >
> > DynAPI.onLoad = function() {
> >
> > scrollobj = new ScrollPane(DynAPI.document.all.layer1)
> > scrollobj.setSize(150,150)
> > scrollobj.moveTo(250,50)
> >
> > DynAPI.document.addChild(scrollobj)
> > }
> >
> > //-->
> > </script>
> > </head>
> > <body bgcolor="#ffffff">
> >
> > <br>set scroll size: <a
> > href="javascript:scrollobj.setSize(150,150)">150</a>, <a
> > href="javascript:scrollobj.setSize(250,250)">250</a>, <a
> > href="javascript:scrollobj.setSize(350,350)">350</a>
> >
> > <div id="layer1" style="position: absolute;>
> > I am a sample inline layer. I am a sample inline layer. I am a sample
> inline
> > layer. I am a sample inline layer.
> > </div>
> > </body>
> > </html>
> >
> >
> > -Jon
> >
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


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

Reply via email to