xLayer is a Javascript object built with OO methodology which simplifies the processes
of creating dynamic web pages and is browser independent. xLayer is basically a dynamic
DIV tag with methods. xLayer creates a DIV tag on the fly for it's source.
It can also convert a preexisitng DIV tag into an xLayer.
Use the form below to create an xLayer dynamically! provide the specified attributes
and click on the web page and the layer will be created at that position. If you
decide to make the layer dragable try performing a multiple drag. Update any attribute
of a created layer by selecting it then changing one of the values in the form.
XLayer has the following methods, a brief description is included.
debug() : Displays all attributes of the xLayer in a dialog box.
write( strHtml ) : Inserts the given string in the xLayer.
show() : Makes the xLayer visible.
setVisible( bln ) : Hides or shows the xLayer according to bln.
isVisible() : Returns true if the layer is visible or false if it is hidden.
hide() : Makes the xLayer invisible.
clipTo( iT , iR , iB , iL) : Makes a portion of the xLayer visible.
clipBy( iT , iR , iB , iL) : Makes a portion of the xLayer visible.
slideTo( iX , iY , iSpeed , iUnit , objFunc) : Moves a layer by units to the position at the speed and calls the specified function when done.
slideBy( iX , iY , iSpeed , iUnit , objFunc) : Same as slideTo.
ford() : Increases the ZIndex property of the layer by 1.
back() : decreases the ZIndex property of the layer by 1.
toBottom() : Moves the layer to the bottom of all other layers.
toTop() : Moves the layer to the top of all other layers.
load( strFileNme ) : Loads the given file into the xLayer.
getContent() : Returns the content in the layer.
moveTo( iX , iY ) : Moves the layer to the new position.
moveBy( iX , iY ) : Moves the layer to the new position from adding the original position.
getY() : Returns the Y coordinate position of the layer.
getX() : Returns the X coordinate position of the layer.
getIndex() : Returns the ZIndex of the layer.
getColor() : Returns the color of the layer.
setColor( strClr ) : Sets the color of the layer.
setImage( strImgNme ) : Sets an image for the layer.
setIndex( iIdx ) : Sets the ZIndex for the layer.
setCursor( strCursorNme ) : Sets the Cursor for the layer.
setSize( iWid , iHgt ) : Sets the size of the layer.
setWidth( iWid ) : Sets the width for the layer.
setHeight( iHgt ) : Sets the height for the layer.
setScrollBarsAllways( bln ) : If true Scrollbars will always be displayed on the layer otherwise the layer will not have scrollbars.
setScrollBarsAsNeeded( bln ) : If true Scrollbars will always be displayed on the layer when needed otherwise the layer will not have scrollbars..
setFontColor( strClr ) : Sets the font color for the layer.
setFontSize( iSiz ) : Sets the font size for the layer.
setBorder( iSiz, strClr) : Sets the border color and size for the layer.
setTitle( strTxt, iHgt, strClr) : Sets the title height, color and text for the layer.