1. Trang chủ
  2. » Công Nghệ Thông Tin

javascript programmer''''s reference phần 6 ppsx

262 848 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 262
Dung lượng 1,75 MB

Nội dung

L – Layer.pageX (Property) 1307 Warnings: ❑ This method is deprecated in favor of the Layer.moveBy() method in Netscape 4. ❑ No longer supported in Netscape 6.0. See also: Layer.moveBy() Layer.pageX (Property) The X-coordinate of the layer relative to the top level document. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Number primitive JavaScript syntax: N myLayer.pageX Window Layer 1 Layer 2 Offset X Offset Y Warnings: ❑ No longer supported in Netscape 6.0. See also: Layer.moveToAbsolute() JavaScript Programmer's Reference 1308 Layer.pageY (Property) The Y-coordinate of the layer relative to the top level document. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Number primitive JavaScript syntax: N myLayer.pageY Window Layer 1 Layer 2 Offset X Offset Y Warnings: ❑ No longer supported in Netscape 6.0. See also: Layer.moveToAbsolute() Layer.parentLayer (Property) The layer containing the current layer (for a single layer, this is the window object). Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Layer or Window object JavaScript syntax: N myLayer.parentLayer L – Layer.releaseEvents() (Function) 1309 Warnings: ❑ No longer supported in Netscape 6.0. See also: Layer.moveTo() Property attributes: ReadOnly. Layer.releaseEvents() (Function) Part of the Netscape 4 event propagation complex. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: undefined JavaScript syntax: N myLayer.releaseEvents(anEventMask) Argument list: anEventMask A mask defined with the manifest event constants This is part of the event management suite which allows events to be routed to handlers other than just the one that defaults to being associated with an event. The events to be captured are signified by setting bits in a mask. This method provides a means of indicating which events are no longer needing to be captured by the receiving Layer object. The events are specified by using the bitwise OR operator (|) to combine the required event mask constants into a mask that defines the events you want to capture. Refer to the Event Type Constants topic for a list of the event mask values. Since this is only supported by Netscape, the functionality is likely to be deprecated when the standards bodies agree on a standard way of handling events. In the meantime, we shall have to implement scripts using this capability if we need to build complex event handling systems. A different script will be required for MSIE. You may be able to factor your event handler so that you only have to make platform specific event dispatchers, and can call common handling routines that can be shared between MSIE and Netscape. Warnings: ❑ No longer supported in Netscape 6.0. See also: captureEvents(), Document.captureEvents(), Document.releaseEvents(), Element.onevent, Event propagation, Event type constants, Event.modifiers, Frame object, Layer.captureEvents(), onMouseMove, Window object, Window.releaseEvents() JavaScript Programmer's Reference 1310 Layer.resizeBy() (Method) Adjusts the size of a layer by a relative amount. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated JavaScript syntax: N myLayer.resizeBy(anX, aY) anX A relative distance in the X axis Argument list: aY A relative distance in the Y axis The layer can have its size adjusted by a value measured in pixels. This can apply to the horizontal or vertical axis or both if necessary. The value can be positive or negative causing the layer to grow or shrink respectively. Although the size changes, the top left corner will remain pinned to its current location growing or shrinking the layer to the right and bottom of its extent. Delta X Delta Y Warnings: ❑ No longer supported in Netscape 6.0. See also: Layer.resizeTo() L – Layer.resizeTo() (Method) 1311 Layer.resizeTo() (Method) Adjusts the size of a layer to an absolute value. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated JavaScript syntax: N myLayer.resizeTo(anX, aY) anX An X axis value Argument list: aY A Y axis value This method provides a way to set the absolute size of a layer as opposed to the relative sizing offered by the resizeBy() method. Although the size changes, the top left corner will remain pinned to its current location growing or shrinking the layer to the right and bottom of its extent. Warnings: ❑ No longer supported in Netscape 6.0. See also: Layer.resizeBy() Layer.routeEvent() (Function) Part of the Netscape event propagation complex. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: undefined JavaScript syntax: N myLayer.routeEvent(anEvent) Argument list: anEvent An event object JavaScript Programmer's Reference 1312 Object 1 Object 2 Object 3 Object 4 Warnings: ❑ No longer supported in Netscape 6.0. See also: Layer.handleEvent(), Window.routeEvent() Layer.siblingAbove (Property) A layer that is related to this layer and above it in the Z ordering. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Layer object JavaScript syntax: N myLayer.siblingAbove Given that a layer arrangement is yet another example of a tree structured hierarchy within a page, this property yields the next higher sibling belonging to the same parent (or null if this is the highest element). L – Layer.siblingAbove (Property) 1313 Any layers sharing a common parent layer will all be present in the same layers[] collection. They are considered to be siblings and can be ordered with respect to one another. They are ordered collectively by their parent's relationship with its siblings and you cannot interleave siblings from different sets with one another; the set as a whole must be ordered within its parent's z-axis location. Parent/Child Siblings Siblings sibling above sibling above sibling above JavaScript Programmer's Reference 1314 Warnings: ❑ No longer supported in Netscape 6.0. See also: Hierarchy of objects, Layer object, Layer.siblingBelow Property attributes: ReadOnly. Layer.siblingBelow (Property) A layer that is related to this layer and below it in the Z ordering. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Layer object JavaScript syntax: N myLayer.siblingBelow Warnings: ❑ No longer supported in Netscape 6.0. See also: Layer object, Layer.siblingAbove Property attributes: ReadOnly. Layer.src (Property) The source URL for a layer. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: String primitive JavaScript syntax: N myLayer.src Changing this layer property value forces the browser to load a new document into the layer. This can work very effectively if you generate dynamic content via a javascript: URL as the value assigned to the src property. L – Layer.top (Property) 1315 Warnings: ❑ If you are having problems with this, try creating an absolute positioned <DIV> container and then use the Layer.load() method instead. According to reports from other developers, that works better in Netscape 4. ❑ This doesn't work with ILAYER elements, in Netscape 4. ❑ No longer supported in Netscape 6.0. See also: javascript: URL, Layer.load() Layer.top (Property) The y-coordinate (in pixels) of the layer relative to its containing layer. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Number primitive JavaScript syntax: N myLayer.top In Netscape this defines the top edge coordinate of a layer. It corresponds to the pixelTop property of an MSIE style object. Warnings: ❑ No longer supported in Netscape 6.0. See also: style.pixelTop, style.posTop Layer.visibility (Property) Whether a layer is visible or not. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Boolean primitive N myLayer.visibility N myLayer.visibility = "hide" JavaScript syntax: N myLayer.visibility = "show" JavaScript Programmer's Reference 1316 This controls the visibility of a Netscape layer. It accepts the following values: ❑ hide ❑ inherit ❑ show It also accepts these CSS syntax values (which it converts internally): ❑ hidden ❑ visible Warnings: ❑ When set to hide, the gap won't be filled by surrounding content. ❑ No longer supported in Netscape 6.0. See also: Layer.hidden, style.visibility Layer.window (Property) The window that this layer belongs to. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated Property/method value type: Window object JavaScript syntax: N myLayer.window Warnings: ❑ No longer supported in Netscape 6.0. See also: Frame object, Window object [...]... String literal Cross-references: ECMA 262 edition 2 – section – 7.2 ECMA 262 edition 2 – section – 7.8 ECMA 262 edition 3 – section – 7.3 1337 JavaScript Programmer's Reference LINK object (Object/HTML) An object that represents HTML tags in documents Availability: DOM level – 1 JavaScript – 1.5 JScript – 3.0 Internet Explorer – 4.0 Netscape – 6. 0 Inherits from: Element object JavaScript syntax:... Property JavaScript JScript N IE Opera DOM HTML Notes charset 1.5 + 5.0 + 6. 0 + 5.0 + - 1+ - - disabled 1.5 + 3.0 + 6. 0 + 4.0 + - 2+ - - href 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - - hreflang 1.5 + 5.0 + 6. 0 + 5.0 + - 1+ - - media 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - Warning readyState - 3.0 + - 4.0 + - - - ReadOnly rel 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - - rev 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - - title 1.5 + 3.0 + 6. 0 + 4.0... onKeyDown 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onKeyPress 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onKeyUp 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onMouseDown 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onMouseMove 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onMouseOut 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onMouseOver 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onMouseUp 1.5 + 3.0 + 6. 0 + 4.0 + - -... + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onKeyPress 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onKeyUp 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onMouseDown 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onMouseMove 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning Table continued on following page 1332 L – LI.type (Property) Event name JavaScript JScript N IE Opera DOM HTML Notes onMouseOut 1.5 + 3.0 + 6. 0... onChange 1.5 + 3.0 + 6. 0 + 4.0 + - - - - onClick 1.5 + 3.0 + 6. 0 + 3.0 + - - 4.0 + Warning onDblClick 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onDragStart - 3.0 + - 4.0 + - - - - onFilterChange - 3.0 + - 4.0 + - - - - onFocus 1.5 + 3.0 + 6. 0 + 4.0 + - - - Warning onHelp - 3.0 + - 4.0 + - - - Warning Table continued on following page 1321 JavaScript Programmer's Reference Event name JavaScript JScript... Input.accessKey Property JavaScript JScript N IE Opera DOM HTML Notes accessKey 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - Deprecated align 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - Warning, Deprecated form 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - Deprecated padding - 3.0 + - 4.0 + - - - - tabIndex 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - Deprecated Event name JavaScript JScript N IE Opera DOM HTML Notes onBlur 1.5 + 3.0 + 6. 0 + 4.0 + - - - Warning... 1+ - - type 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - - Event name JavaScript JScript N IE Opera DOM HTML Notes onClick 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onDblClick 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onError 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - - Warning onHelp - 3.0 + - 4.0 + - - - Warning onKeyDown 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onKeyPress 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0... 4.0 + Warning onKeyUp 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onLoad 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - - Warning onMouseDown 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onMouseMove 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onMouseOut 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onMouseOver 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onMouseUp 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onReadyStateChange... this as a LIElement object See also: Element object, OL.compact Property JavaScript JScript N IE Opera DOM HTML Notes type 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - - value 1.5 + 3.0 + 6. 0 + 4.0 + - 1+ - - Event name JavaScript JScript N IE Opera DOM HTML Notes onClick 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onDblClick 1.5 + 3.0 + 6. 0 + 4.0 + 3.0 + - 4.0 + Warning onDragStart - 3.0 + - 4.0 + - - - - onFilterChange... function( ) , LValue, new, Property accessor Cross-references: ECMA 262 edition 2 – section – 11.2 ECMA 262 edition 3 – section – 11.2 Legend object (Object/HTML) The Legend object relates to a field-set within a form Availability: DOM level – 1 JavaScript – 1.5 JScript – 3.0 Internet Explorer – 4.0 Netscape – 6. 0 Deprecated Inherits from: Element object JavaScript syntax: IE myLegend = myDocument.all.anElementID . following page JavaScript Programmer's Reference 1322 Event name JavaScript JScript N IE Opera DOM HTML Notes onKeyDown 1.5 + 3.0 + 6. 0 + 4.0 + - - 4.0 + Warning onKeyPress 1.5 + 3.0 + 6. 0 + 4.0. Window.releaseEvents() JavaScript Programmer's Reference 1310 Layer.resizeBy() (Method) Adjusts the size of a layer by a relative amount. Availability: JavaScript – 1.2 Netscape – 4.0 Deprecated JavaScript. primitive N myLayer.visibility N myLayer.visibility = "hide" JavaScript syntax: N myLayer.visibility = "show" JavaScript Programmer's Reference 13 16 This controls the visibility of a Netscape

Ngày đăng: 12/08/2014, 19:21