Hello...
I have been trying to get the following code to work
in IE and Netscape 4.7. It runs great in IE, but runs
extremely slow in Netscape, and does not always
display content in Netscape. Am I doing something
wrong, or does anyone have any alternatives? I want
to create a function which creates a scrollable later
that acts similar to a mini browser. I am new to
DynAPI, and have read the old mail archives all
afternoon, but have not found any answers to my
problem. This code works great in IE and NS 4.7 until
I add the scrollpane object, and then it takes forever
to run the function.
Thanks for your time,
Shawn Paige
<html>
<head>
<script language="Javascript"
src="../src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('../src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*');
DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.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.dynimage.js');
DynAPI.include('dynapi.gui.label.js');
DynAPI.include('loadlayer.js', './');
</script>
<script language="Javascript">
function createFrame() {
// Create layer to act as draggable window
var frameLayer = new DynLayer( null, 10, 0, 150,
175, '#c0c0c0')
DragEvent.setDragBoundary(frameLayer)
DragEvent.enableDragEvents(frameLayer)
// Create layer to act as title bar
var titleLayer = new DynLayer( null, 0, 0, 150, 25,
'#00ff00')
frameLayer.addChild(titleLayer)
// Create layer to display content
var contentLayer = new DynLayer( null, 10, 20, 200,
175)
contentLayer.toLoadLayer("menu.htm","<font size=1
face=verdana>Loading...</a>")
// Create scrollpane to scroll content
scrollLayer = new ScrollPane(contentLayer) //
toLoadLayer will be set as the content
scrollLayer.setSize(150,150)
scrollLayer.moveTo(0,25)
// Create dependencies and move window so it does not
cover links
frameLayer.moveTo(100,100)
frameLayer.addChild(scrollLayer)
DynAPI.document.addChild(frameLayer)
}
</script>
</head>
<body>
<a href="javascript: createFrame()">create</a><br>
</html>
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help