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="Javascript" src="javascript/dynapi.js"></script>

<script language="Javascript">

DynAPI.setLibraryPath('javascript/lib/')

DynAPI.include('dynacore.api.*')
DynAPI.include('dynacore.ext.inline.js')

DynAPI.onLoad=function() {

        DynAPI.document.elements["testlayer"].setBgColor('#c0c0c0')
        DynAPI.document.elements["testlayer"].setSize(60,60)
        DynAPI.document.elements["testlayer"].moveTo(100,100)
    
    DynAPI.document.elements["layer2"].setBgColor('#c0c340')
        DynAPI.document.elements["layer2"].setSize(180,60)
        DynAPI.document.elements["layer2"].moveTo(200,100)
        
}

</script>
</head>

<body>
<div id="testlayer" STYLE="position: absolute">Testing inline
layers</div>

<br>
<div id="layer2" STYLE="position: absolute">Testing inline layers2</div>
</body>
</html>


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

Reply via email to