--- Stephane Boireau <[EMAIL PROTECTED]> wrote: > Hi, > > Is it possible to set a layer draggable enven if it > was not created the way > shown in examples: > LayerTest=this.document.addChild(new > DynLayer(null,300,300,300,100,'silver')) > DragEvent.enableDragEvents(LayerTest) > > I have got layers like that: > <div id="Layer1Div" style="position:absolute; > left:583px; top:30px; > width:43px; height:21px; background-color:white; > layer-background-color:white; border: 1px solid > black;">Alsace</div> > <div id="Layer2Div" style="position:absolute; > left:649px; top:41px; > width:61px; height:22px; background-color:white; > layer-background-color:white; border: 1px solid > black;">Aquitaine</div> > ... > > And I want them to be draggable. > > Is it possible? > > How?
What version are you using (2.5.x or 2.9)? If you're using 2.5.x I think you'll have to use setID() to the id of the layer to Layer1Div -- Raymond Irving > With Dan Steinman's code I did: > ... > DynLayerInit(); > layermot=new Array > for(i=1;i<nblaydepl+1;i=i+1){ > layercourant="Layer"+i+"Div"; > layermot[i]=new DynLayer(layercourant); > drag.add(layermot[i]); > } > ... > But it doesn't work with Mozilla... > > Layers weren't dynamicly generated, and I just want > (at this time) to make it > OK with Mozilla. > > Can you help me, please? > > Thank you very much! > -- > Stephane > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of > bandwidth! > No other company gives more support or power for > your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help