Hello Everybody.
I have a small problem:
Inside a draggable layer I have a childlayer that,
when clicked, needs to resize the parentlayer (the draggable one) to
"currentWidth"+10, "currentHeight"+10.
Also I need the childlayer to be visible only
onmouseover on the parentlayer or the childlayer itself.
I know the eventListener is working since a can
make an alarm pop-up on click.
My code looks at bit like this:
<style>
#eek-05 { position:absolute; font-family: verdana; font-size: 9px; left:370px; top:120px; width:100px; height:20px; } </style>
<script language="JavaScript"
src="../DynApi2_v253/dynapi/src/dynapi.js"></script>
<script language="Javascript"> DynAPI.setLibraryPath('../DynApi2_v253/dynapi/src/lib/'); DynAPI.include('dynapi.api.browser.js'); DynAPI.include('dynapi.api.dynlayer.js'); DynAPI.include('dynapi.api.dyndocument.js'); DynAPI.include('dynapi.event.*'); DynAPI.include('dynapi.gui.dynimage.js'); </script> <script language="Javascript"> DynAPI. {
file://Creates the layer where the picture will be uploaded to myLayer = new DynLayer() file://name : myLayer myLayer.setSize(257,193) file://size(height,width) myLayer.setBgColor('yellow') file://Background-color myLayer.moveTo(110,90) file://Position on the page(left,top) dragLayer=myLayer.addChild(new
DynLayer(null,10,10,75,33,null,null,null,'../billeder/rendhop.jpg'))
plusLayer=dragLayer.addChild(new
DynLayer(null,0,0,10,10,'pink'))
DragEvent.enableDragEvents(dragLayer) DragEvent.setDragBoundary(dragLayer) plusListener=new EventListener(plusLayer) plusListener. { dragLayer.setSize=('getWidth'+10,'getHeight'+10) } </script> </HEAD> I hope one of You bright guys can help
me.
Thanks
Kasper
|