ACCELERATOR Attribute | accelerator参数属性
| DHTML文档教程 |
Sets or retrieves a string that indicates whether the object contains an accelerator key. dhtml语法 HTML |
{ ACCELERATOR : sIsAccessible }
|
---|
Scripting | object.style.accelerator(v) [ = sIsAccessible ] |
---|
DHTML可能的值 sIsAccessible | String that
specifies or receives one of the following values.false | Object does not contain an accelerator key. | true | Object contains an accelerator key. |
|
The property is read/write
for all objects except the following, for which it is read-only:
currentStyle.
The property has no default value. The Microsoft Cascading Style Sheets (CSS) extension is
not inherited.
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 an accelerator key is a single character used as a shortcut for selecting an object. pressing the alt key followed by the accelerator key gives focus to the object and invokes the default event associated with the object. this property is supported by microsoft® windows® 2000 and later, which enables users to hide navigation indicators for menu items and controls until the alt key is pressed.
DHTML代码范例
This example uses the ACCELERATOR attribute in a u element to specify that the n in the label element is an accelerator key. when the option to "hide keyboard navigation indicators until i use the alt key" is enabled in the user's display properties, the n is not underlined until the user presses the alt key. <label for="oname"><u style="accelerator:true">N</U>ame: </LABEL>
<INPUT TYPE="text"
ID="oName"
SIZE="25"
ACCESSKEY="N"
VALUE="Your name here">
是否符合公共标准
There is no public standard that applies to this property.
Applies To |
A,
ACRONYM,
ADDRESS,
APPLET,
B,
BDO,
BIG,
BLOCKQUOTE,
BODY,
CENTER,
CITE,
CODE,
currentStyle,
CUSTOM,
DD,
defaults,
DEL,
DFN,
DIR,
DIV,
DL,
DT,
EM,
EMBED,
FIELDSET,
FONT,
FORM,
hn,
I,
IFRAME,
INS,
KBD,
LABEL,
LEGEND,
LI,
LISTING,
MENU,
OL,
P,
PLAINTEXT,
PRE,
Q,
RT,
RUBY,
runtimeStyle,
S,
SAMP,
SELECT,
SMALL,
SPAN,
STRIKE,
STRONG,
style,
SUB,
SUP,
TABLE,
TEXTAREA,
TT,
U,
UL,
VAR,
XMP | |
|