Mega Code Archive

 
Categories / JavaScript DHTML / HTML
 

Methods and Properties of the Layer Object

/* JavaScript Unleashed, Third Edition by Richard Wagner and R. Allen Wyke  ISBN: 067231763X Publisher Sams CopyRight 2000 +---------+----------------+-------------------------------------------------+   Type       Item             Description +---------+----------------+-------------------------------------------------+   Method +---------+----------------+-------------------------------------------------+            captureEvents()   Specifies the event types to capture. +---------+----------------+-------------------------------------------------+            handleEvent()     Invokes handler for specified event. +---------+----------------+-------------------------------------------------+            load()            Loads a new URL. +---------+----------------+-------------------------------------------------+            moveAbove()       Moves the layer above another layer. +---------+----------------+-------------------------------------------------+            moveBelow()       Moves the layer below another layer. +---------+----------------+-------------------------------------------------+            moveBy()          Moves the layer to a specified position. +---------+----------------+-------------------------------------------------+            moveTo()          Moves the top-left corner of the window to the                               specified screen coordinates. +---------+----------------+-------------------------------------------------+           moveToAbsolute()   Changes the layer position to the specified pixel                               coordinates within the page. +---------+----------------+-------------------------------------------------+            releaseEvents()   Sets the layer to release captured events of the                               specified type. +---------+----------------+-------------------------------------------------+            resizeBy()        Resizes the layer by the specified height and                               width values. +---------+----------------+-------------------------------------------------+            resizeTo()        Resizes the layer to have the specified height and                               width values. +---------+----------------+-------------------------------------------------+            routeEvent()      Passes a captured event along the normal event hierarchy. +---------+----------------+-------------------------------------------------+  Property +---------+----------------+-------------------------------------------------+            above             Specifies the layer above. +---------+----------------+-------------------------------------------------+            background        Refers to the background image of the layer. +---------+----------------+-------------------------------------------------+            below             Specifies the layer below. +---------+----------------+-------------------------------------------------+            bgColor           Refers to the background color of the layer. +---------+----------------+-------------------------------------------------+            clip.bottom       Refers to the bottom of the layer's clipping area. +---------+----------------+-------------------------------------------------+            clip.height       Refers to the height of the layer's clipping area. +---------+----------------+-------------------------------------------------+            clip.left         Refers to the left of the layer's clipping area. +---------+----------------+-------------------------------------------------+            clip.right        Refers to the right of the layer's clipping area. +---------+----------------+-------------------------------------------------+            clip.top          Refers to the top of the layer's clipping area. +---------+----------------+-------------------------------------------------+            clip.width        Refers to the width of the layer's clipping area. +---------+----------------+-------------------------------------------------+            document          Refers to the Document object that contains the layer. +---------+----------------+-------------------------------------------------+            left              Refers to the x-coordinate of the layer. +---------+----------------+-------------------------------------------------+            name              Refers to the name of the layer. +---------+----------------+-------------------------------------------------+            pageX             Refers to the x-coordinate relative to the document. +---------+----------------+-------------------------------------------------+            pageY             Refers to the y-coordinate relative to the document. +---------+----------------+-------------------------------------------------+            parentLayer       Refers to the containing layer. +---------+----------------+-------------------------------------------------+            siblingAbove      Refers to the layer above in the zIndex. +---------+----------------+-------------------------------------------------+            siblingBelow      Refers to the layer below in the zIndex. +---------+----------------+-------------------------------------------------+            src               Refers to the source URL for the layer. +---------+----------------+-------------------------------------------------+            top               Refers to the y-coordinate of the layer. +---------+----------------+-------------------------------------------------+            visibility        Refers to the visibility state of the layer. +---------+----------------+-------------------------------------------------+            window            Refers to the Window or Frame object that contains                               the layer. +---------+----------------+-------------------------------------------------+            x                 Refers to the x-coordinate of the layer. +---------+----------------+-------------------------------------------------+            y                 Refers to the y-coordinate of the layer. +---------+----------------+-------------------------------------------------+            z                 Refers to the relative z-order of this layer with                               respect to its siblings. +---------+----------------+-------------------------------------------------+ */