Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the type of cursor to display as the mouse pointer moves over the object .
What's New for Microsoft® Internet Explorer 6The cursor property supports progress, not-allowed, no-drop, vertical-text, all-scroll, col-resize, row-resize, and url(uri) as new cursor styles.
Syntax
{ cursor : sCursor } |
object . style.cursor ( v ) [ = sCursor ] |
Possible Values
sCursor | String that specifies or receives one or more of the following possible values, separated by commas.
|
The property is read/write for all objects except the following, for which it is read-only: currentStyle . The property has a default value of auto . The Cascading Style Sheets (CSS) attribute is 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
The property handles a comma-separated list of cursor values. If the user agent does not understand or cannot find the first cursor specified, it looks at the next cursor in the comma-separated list and continues until it finds a usable cursor. If the user agent does not understand any of the cursors that are listed, the cursor does not change.
Examples
The following examples use the cursor attribute and the cursor property to change the cursor as it passes over an object.This example uses a call to an embedded (global) style sheet to set the cursor to hand as the cursor passes over all paragraphs.
<STYLE> P { cursor : hand; } </STYLE>This example uses inline scripting to set the cursor to hand as the cursor passes over the paragraph.
<P onmouseover="this.style. cursor ='hand'">This example demonstrates setting a custom cursor, by using the url(uri) value.
<STYLE> oBox.style. cursor = "url(" + Some_Uniform_Resource_Identifier + ")"; </STYLE>
Standards Information
This property is defined in Cascading Style Sheets (CSS), Level 2 (CSS2) .
Applies To
|
A , ADDRESS , APPLET , B , BIG , BLOCKQUOTE , BODY , CAPTION , CENTER , CITE , CODE , COL , COLGROUP , currentStyle , CUSTOM , DD , defaults , DFN , DIR , DIV , DL , DT , EM , EMBED , FIELDSET , FORM , hn , HR , HTML , I , IFRAME , IMG , INPUT type=button , INPUT type=checkbox , INPUT type=file , INPUT type=image , INPUT type=password , INPUT type=radio , INPUT type=reset , INPUT type=submit , INPUT type=text , KBD , LABEL , LEGEND , LI , LISTING , MARQUEE , MENU , OBJECT , OL , P , PLAINTEXT , PRE , RT , RUBY , runtimeStyle , S , SAMP , SMALL , SPAN , STRIKE , STRONG , style , SUB , SUP , TABLE , TBODY , TD , TEXTAREA , TFOOT , TH , THEAD , TR , TT , U , UL , VAR , XMP |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |