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