Using DynLayers

(see DynLayers home page)

Using DynLayers in few steps:

  1. add dynlayer.js to your page : <script src="something/dynlayer.js" language="javascript" type="text/javascript"></script>
  2. create init() function and run in on load: <body onload="init()"> content </body>
  3. add whatever layers you want, but they must have ID with "Div" at the end, e.g. <div id="mylayerDiv"> content </div> You'll probably need to specify styles for them: <style type="text/css"> #mylayerDiv {position:absolute; left:30; top:50;}</style> Note: '#' is followed by the layer's id
  4. Add call of "DynLayerInit()" into your init() function. The function will do lot of work, e.g. creates Browser Check object called "is" and an object for each of your layers whose name is equal to the layer's id without 'Div' suffix (e.g. 'mylayer'.


Notes: