Using DynLayers
(see DynLayers home
page)
Using DynLayers in few steps:
-
add dynlayer.js to your page : <script src="something/dynlayer.js"
language="javascript" type="text/javascript"></script>
-
create init() function and run in on load: <body onload="init()">
content </body>
-
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
-
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:
-
Browser Check object properties (object's name is "is"). For more info
se DynLayer homepage
-
is.b - (String) browser name, converted to "ns" if Netscape, "ie" if Internet
Explorer
is.v - (integer) version
number (2,3,4,5 etc.)
is.ns - (boolean)
Netscape 4 or greater
is.ns4 - (boolean)
Netscape 4
is.ns5 - (boolean)
Netscape 5
is.ie - (boolean)
Internet Explorer 4 or greater
is.ie4 - (boolean)
Internet Explorer 4
is.ie5 - (boolean)
Internet Explorer 5
is.min - (boolean)
Netscape 4 or 5, or Internet Explorer 4 or 5