Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 262 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
262
Dung lượng
1,73 MB
Nội dung
Error! No text of specified style in document. 2093 This property will be useful as an alternative to the style.left property which includes the measurement units when a value is read back from it. The value in this property will be an integer defined in pixel measurement units only. This is regardless of the settings of the measurement units in the CSS attribute. Refer to the style.posLeft property for a more generalized value that can be operated on with different measurement units. See also: Element.offsetLeft, Layer.left, Measurement units, style.left, style.posLeft style.pixelRight (Property) The pixel position of the right edge of the styled element. Availability: JScript – 5.0 Internet Explorer – 5.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.pixelRight CSS syntax: pixel-right: aValue Argument list: aValue A positioning value This object was added in version 5 of MSIE to complete the set of positioning properties already available with the style object in earlier versions of MSIE. Objects can be positioned on screen with this property. This value defines the location of the right edge of a styled element. The right edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container. This property will be useful as an alternative to the style.right property, which includes the measurement units when a value is read back from it. The value in this property will be an integer defined in pixel measurement units only. This is regardless of the settings of the measurement units in the CSS attribute. Refer to the style.posRight property for a more generalized value that can be operated on with different measurement units. See also: Measurement units, style.posRight, style.right Chapter number 2094 style.pixelTop (Property) The pixel position of the top edge of the styled element. Availability: JScript – 3.0 Internet Explorer – 4.0 Opera – 5.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.pixelTop CSS syntax: pixel-top: aValue Argument list: aValue A positioning value Objects can be positioned on screen with this property. This value defines the location of the top edge of a styled element. The top edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container. The value in this property should be reflected in the Element.offsetTop property. This property will be useful as an alternative to the style.top property which includes the measurement units when a value is read back from it. The value in this property will be an integer defined in pixel measurement units only. This is regardless of the settings of the measurement units in the CSS attribute. Refer to the style.posTop property for a more generalized value that can be operated on with different measurement units. See also: Element.offsetTop, Layer.top, Measurement units, style.posTop, style.top style.pixelWidth (Property) The pixel width of the styled element. Availability: JScript – 3.0 Internet Explorer – 4.0 Opera – 5.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.pixelWidth CSS syntax: pixel-width: aWidth Argument list: aWidth A sizing value Although this is a read and write property, it is most likely to be useful for measuring the width of an object to get a numeric value without the trailing px suffix that you get when enquiring the style.width value. Error! No text of specified style in document. 2095 The value in this property will be an integer defined in pixel measurement units only. This is regardless of the settings of the measurement units in the CSS attribute. Refer to the style.posWidth property for a more generalized value that can be operated on with different measurement units. See also: Measurement units, style.pixelHeight, style.posHeight, style.posWidth, style.width style.playDuring (Property) Part of the aural style control suite that controls the mix between foreground and background sound effects. Availability: CSS level – 2 DOM level – 2 Property/method value type: String primitive JavaScript syntax: none myStyle.playDuring CSS syntax: play-during: aControl Argument list: aControl A mix control for background sounds Foreground and background sound effects need to be controlled carefully and blended properly, so that background noises such as music and sound effects do not distract from the speech. The values for this comprise a URI value and an optional controlling parameter. The value should be space-separated. The URI specifies an audio file to be downloaded and played in the background. The following keywords control how the background sound is mixed with any parent object's sound effects: ❑ mix ❑ repeat ❑ auto ❑ none The mix keyword combines any sounds already playing as defined by parent elements. The repeat keyword allows for the background sound to be looped as required to extend it to the same length as the spoken content. The auto value allows the parent elements sound effects to be played without being interrupted by this elements sounds. The none value turns off any sound effects inherited from parent objects only playing sounds controlled by this object. Chapter number 2096 Warnings: ❑ This is not yet supported by any of the browsers. See also: Aural style sheets style.posBottom (Property) A measurement unit independent positioning control property. Availability: JScript – 5.0 Internet Explorer – 5.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.posBottom CSS syntax: pos-bottom: aValue Argument list: aValue A positioning value This object was added in version 5 of MSIE to complete the set of positioning properties already available with the style object in earlier versions of MSIE. Objects can be positioned on screen with this property. This value defines the location of the bottom edge of a styled element. The bottom edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container. This property will be useful as an alternative to the style.bottom property, which includes the measurement units when a value is read back from it. The value in this property will be an integer defined in the measurement units defined by the CSS attribute. Refer to the style.pixelBottom property for a more specialized value that can be operated on unambiguously in pixel measurement units. See also: Measurement units, style.bottom, style.pixelBottom style.posHeight (Property) A measurement unit independent size control property. Availability: JScript – 3.0 Internet Explorer – 4.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.posHeight CSS syntax: pos-height: aHeight Argument list: aHeight A sizing value Error! No text of specified style in document. 2097 Although this is a read and write property, it is most likely to be useful for measuring the height of an object to get a numeric value without the trailing measurement unit suffix that you get when enquiring the style.width value. The value in this property will be an integer defined in CSS attribute defined measurement units only. Refer to the style.pixelHeight property for a more specialized value that can be operated on unambiguously using pixel values. See also: Measurement units, style.height, style.pixelHeight, style.pixelWidth, style.posWidth style.position (Property) A flag to indicate relative or absolute positioning of an element. Availability: CSS level – 2 DOM level – 2 JavaScript – 1.5 JScript – 3.0 Internet Explorer – 4.0 Netscape – 6.0 Property/method value type: String primitive - myStyle.position = "absolute" JavaScript syntax: - myStyle.position = "relative" CSS syntax: position: aControl Argument list: aControl A positioning control In MSIE, this value returns a floating point value reflecting the current value of the position attribute for the styleSheet object. You can define other values for this according to the available keywords: ❑ absolute ❑ relative ❑ fixed ❑ normal ❑ static The absolute keyword applies to element objects that are positioned with respect to the document boundaries. The relative keyword applies to element objects that are positioned with respect to a parent or containing element object. Chapter number 2098 The fixed keyword is defined in the CSS standard to mean that an element object should be positioned with respect to the display window. The normal keyword is equivalent to the CSS defined static keyword and applies to objects whose position is controlled by the text flow. These can be block or inline structured objects. Warnings: ❑ Element objects in Netscape Navigator 4 are positioned by means of the layer capabilities of that version of the browser. Any object that has its position property set to the absolute value will need to be managed in a layer of its own, so that it can be positioned independently of any other objects in the page. These layers are accessible via the layers[] property of the document. ❑ As of Netscape 6.0, layers are completely deprecated and have not been implemented. If you use layers at all, your pages are going to break. ❑ The style.position property is not supported consistently across browsers. Nor is it supported according to the defined default values in the CSS standard. ❑ The fixed keyword is not yet properly supported in MSIE. ❑ Netscape 6.0 does not support the normal keyword although it supports the functionally identical static keyword. See also: Document.layers[], Dynamic positioning, Measurement units, style.overflow Property attributes: ReadOnly. style.posLeft (Property) A measurement unit independent positioning control property. Availability: JScript – 3.0 Internet Explorer – 4.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.posLeft CSS syntax: pos-left: aValue Argument list: aValue A positioning value Objects can be positioned on screen with this property. This value defines the location of the left edge of a styled element. The left edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container. This property will be useful as an alternative to the style.left property which includes the measurement units when a value is read back from it. Error! No text of specified style in document. 2099 The value in this property will be an integer defined in the measurement units defined by the CSS attribute. Refer to the style.pixelLeft property for a more specialized value that can be operated on unambiguously in pixel measurement units. See also: Element.offsetLeft, Layer.left, Measurement units, style.left, style.pixelLeft style.posRight (Property) A measurement unit independent positioning control property. Availability: JScript – 5.0 Internet Explorer – 5.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.posRight CSS syntax: pos-right: aValue Argument list: aValue A positioning value This object was added in version 5 of MSIE to complete the set of positioning properties already available with the style object in earlier versions of MSIE. Objects can be positioned on screen with this property. This value defines the location of the right edge of a styled element. The right edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container. This property will be useful as an alternative to the style.right property which includes the measurement units when a value is read back from it. The value in this property will be an integer defined in the measurement units defined by the CSS attribute. Refer to the style.pixelRight property for a more specialized value that can be operated on unambiguously in pixel measurement units. See also: Measurement units, style.pixelRight, style.right style.posTop (Property) A measurement unit independent positioning control property. Availability: JScript – 3.0 Internet Explorer – 4.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.posTop Chapter number 2100 CSS syntax: pos-top: aValue Argument list: aValue A positioning value Objects can be positioned on screen with this property. This value defines the location of the top edge of a styled element. The top edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container. This property will be useful as an alternative to the style.top property, which includes the measurement units when a value is read back from it. The value in this property will be an integer defined in the measurement units defined by the CSS attribute. Refer to the style.pixelTop property for a more specialized value that can be operated on unambiguously in pixel measurement units. See also: Element.offsetTop, Layer.top, Measurement units, style.pixelTop, style.top style.posWidth (Property) A measurement unit independent size control property. Availability: JScript – 3.0 Internet Explorer – 4.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.posWidth CSS syntax: pos-width: aWidth Argument list: aWidth A sizing value Although this is a read and write property, it is most likely to be useful for measuring the width of an object to get a numeric value without the trailing measurement unit suffix that you get when enquiring the style.width value. The value in this property will be an integer defined in CSS attribute defined measurement units only. Refer to the style.pixelWidth property for a more specialized value that can be operated on unambiguously using pixel values. See also: Measurement units, style.pixelWidth, style.posHeight, style.width Error! No text of specified style in document. 2101 style.quotes (Property) A list of quotation marks to use for progressively quoted content that may have nested quotation marks. Availability: DOM level – 2 JavaScript – 1.5 JScript – 5.0 Internet Explorer – 5.0 Netscape – 6.0 Property/method value type: String primitive JavaScript syntax: - myStyle.quotes CSS syntax: quotes: aValue Argument list: aValue A string to use for quoting text If you specify quotes, you should indicate pairs of quotes. Each quote should be enclosed it its own set of delimiters, which then allows multiple characters to be used for each quotation symbol. You can alternatively use the value none or inherit. style.removeExpression() (Method) An MSIE extension for managing style controls. Availability: JScript – 5.0 Internet Explorer – 5.0 JavaScript syntax: IE myStyle.removeExpression(aProperty) Argument list: aProperty The name of the property whose expression is to be removed This is part of the MSIE support for managing style expressions. With this method, you can remove an expression that was previously defined with the setExpression() method. See also: Element.getExpression(), Element.removeExpression(), Element.setExpression(), style.getExpression(), style.setExpression() Chapter number 2102 style.renderingIntent (Property) An MSIE extension to control the rendering of the page. This is part of the color modeling and preservation of true color representations. Availability: JScript – 5.0 Internet Explorer – 5.0 Property/method value type: String primitive JavaScript syntax: IE myStyle.renderingIntent CSS syntax: rendering-intent: aControl Argument list: aControl A rendering intent specifier value As yet, this is still being worked on. Early drafts suggest the following keywords will be available: ❑ auto ❑ perceptual ❑ relative-colorimetric ❑ saturation ❑ absolute-colorimetric See also: Color names, Color value, style.color, style.colorProfile style.richness (Property) Part of the aural style control suite that defines the forcefulness of the spoken voice. Availability: CSS level – 2 DOM level – 2 Property/method value type: String primitive JavaScript syntax: none myStyle.richness CSS syntax: richness: aValue Argument list: aValue A voice quality control value This control affects the animation, sometimes called brightness or stridency, in the voice. The value 50 is used as the default and with this setting the voice will sound as if it's normal. Reducing this value makes the voice more mellow and soft. Extremely low values might almost be whispered. [...]... myStyle.setExpression("width:", "callBack()", "JavaScript" ) 21 09 Chapter number The value of the width parameter would then be defined by the result of calling the callBack() function in the JavaScript context The expressions are attached to style properties and can be executed in a variety of languages The language argument can be one of the following: ❑ JavaScript ❑ JScript ❑ VBScript See also: Element.getExpression(),... supported by any of the browsers See also: Aural style sheets, style.pitchRange style.right (Property) A positioning reference point Availability: CSS level – 2 DOM level – 2 JavaScript – 1.5 JScript – 5.0 Internet Explorer – 5.0 Netscape – 6.0 Property/method value type: String primitive JavaScript syntax: - CSS syntax: right: aPosition Argument list: aPosition myStyle.right A right coordinate value... 5.5 Property/method value type: String primitive JavaScript syntax: IE CSS syntax: text-underline-position: aControl Argument list: aControl myStyle.textUnderlinePosition One of the available keywords This style property accepts the above and below keywords style.top (Property) A positioning reference point Availability: CSS level – 2 DOM level – 2 JavaScript – 1.5 JScript – 3.0 Internet Explorer –... also: 2108 Color names, Color value Error! No text of specified style in document style.setAttribute() (Method) A method for setting attributes in styles Availability: JavaScript – 1.5 JScript – 5.0 Internet Explorer – 5.0 Netscape – 6.0 JavaScript syntax: - myStyle.setAttribute(aName, aValue) aName The name of an attribute to set aValue The value to be stored in the attribute Argument list: This method... primitive JavaScript syntax: IE CSS syntax: scrollbar-base-color: aColor Argument list: aColor style.scrollbarBaseColor A color value This is a color value specified in the normal way See also: Color names, Color value style.scrollbarDarkShadowColor (Property) Defines the dark shadow color of a scrollbar Availability: JScript – 5.5 Internet Explorer – 5.5 Property/method value type: String primitive JavaScript. .. supported by any of the browsers See also: Aural style sheets style.styleFloat (Property) A property that allows styled elements to float Availability: JavaScript – 1.5 JScript – 3.0 Internet Explorer – 4.0 Netscape – 6.0 Property/method value type: String primitive JavaScript syntax: - CSS syntax: style-float: anAlignment Argument list: anAlignment myStyle.styleFloat A floating alignment control value If you... browser primarily works out table sizing and layout from the content or the sizing HTML tag attributes Availability: CSS level – 2 DOM level – 2 JavaScript – 1.5 JScript – 5.0 Internet Explorer – 5.0 Netscape – 6.0 Property/method value type: String primitive JavaScript syntax: - CSS syntax: table-layout: aType Argument list: aType myStyle.tableLayout A kind of table layout to use When you have a table... document style.textAlign (Property) Controls the horizontal alignment of text within the styled element Availability: CSS level – 1 DOM level – 2 JavaScript – 1.5 JScript – 3.0 Internet Explorer – 4.0 Netscape – 6.0 Property/method value type: String primitive JavaScript syntax: - CSS syntax: text-align: anAlignment Argument list: anAlignment myStyle.textAlign A style of text alignment to use Text alignment... CAPTION.align, JSSTag.textAlign, style.textJustify, style.verticalAlign, style.wordSpacing 21 19 Chapter number style.textAutospace (Property) Support for spacing control in ideographic languages used in Asia Availability: CSS level – Proposed JScript – 5.0 Internet Explorer – 5.0 Property/method value type: String primitive JavaScript syntax: IE CSS syntax: text-autospace: aControl Argument list: aControl myStyle.textAutospace... style.textDecoration (Property) Controls decorative additions to the text such as underlines and strike-throughs Availability: CSS level – 1 DOM level – 2 JavaScript – 1.5 JScript – 3.0 Internet Explorer – 4.0 Netscape – 6.0 Property/method value type: String primitive JavaScript syntax: - CSS syntax: text-decoration: aStyle Argument list: aStyle myStyle.textDecoration A set of decorative properties for the text . positioning reference point. Availability: CSS level – 2 DOM level – 2 JavaScript – 1.5 JScript – 5.0 Internet Explorer – 5.0 Netscape – 6.0 Property/method value type: String primitive JavaScript. in document. 21 09 style.setAttribute() (Method) A method for setting attributes in styles. Availability: JavaScript – 1.5 JScript – 5.0 Internet Explorer – 5.0 Netscape – 6.0 JavaScript syntax: - myStyle.setAttribute(aName, aValue) aName The. the measurement units when a value is read back from it. Error! No text of specified style in document. 2 099 The value in this property will be an integer defined in the measurement units defined by the