HBCMS更多的中文手册参考:

disabled参数属性

DHTML文档教程

Sets or retrieves whether a style sheet is applied to the object.

dhtml语法

HTMLN/A
Scriptingobject.disabled [ = bDisabled ]

DHTML可能的值

bDisabledBoolean that specifies or receives one of the following values.
falseDefault. Style sheet is applied to the object.
trueStyle sheet is not applied to the object.

The property is read/write. The property has a default value of false.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

when a style is disabled, none of the rules render.

the value of this property can also change per media-dependent style sheets.

the disabled property applies to the style object, not the style property.

DHTML代码范例

This example uses the disabled property to indicate whether a style sheet is applied to the body element.

<STYLE>
BODY {background-color: #000000; color: #FFFF00;}
</STYLE>
<SCRIPT>
function fnToggle(){
var oStyle=document.styleSheets[0];
if(oStyle.disabled==true){
oStyle.disabled=false;
}
else{
oStyle.disabled=true;
}
}
</SCRIPT>
<BODY>
<P>
Click Toggle Style Sheet to enable/disable
styles applied to the BODY element.
</P>
<P>
<INPUT TYPE="button"
VALUE="Toggle Style Sheet"
onclick="fnToggle()">
</P>
</BODY>

是否符合公共标准

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

LINK, STYLE, styleSheet

更多语法参考

disabled