From: Raible, M. <MR...@ED...> - 2001-01-12 16:34:46
|
I modified the inline layers code that came with the tutorial, but for some reason, the following code does not work - any ideas? You can also view this file at http://raible.corp.edeploy.com/edeploy_virtual/layers.html <html> <head> <title>Inline layers</title> <script language=3D"Javascript" src=3D"javascript/dynapi.js"></script> <script language=3D"Javascript"> DynAPI.setLibraryPath('javascript/lib/') DynAPI.include('dynacore.api.*') DynAPI.include('dynacore.ext.inline.js') DynAPI.onLoad=3Dfunction() { DynAPI.document.elements["testlayer"].setBgColor('#c0c0c0') DynAPI.document.elements["testlayer"].setSize(60,60) DynAPI.document.elements["testlayer"].moveTo(100,100) =20 DynAPI.document.elements["layer2"].setBgColor('#c0c340') DynAPI.document.elements["layer2"].setSize(180,60) DynAPI.document.elements["layer2"].moveTo(200,100) =09 } </script> </head> <body> <div id=3D"testlayer" STYLE=3D"position: absolute">Testing inline layers</div> <br> <div id=3D"layer2" STYLE=3D"position: absolute">Testing inline = layers2</div> </body> </html> |