HTML DOM cursor Property
Complete Style Object Reference
Definition and Usage
The cursor property specifies the type of cursor to be displayed.
Syntax
Object.style.cursor=cursortype
|
Possible Values
Value |
Description |
url |
The URL of a custom cursor to be used. Tip:
Always define a generic cursor at the end of the list in case none of
the url-defined cursors can be used |
default |
The default cursor (often an arrow) |
auto |
The browser sets a cursor |
crosshair |
The cursor render as a crosshair |
pointer |
The cursor indicates
a link |
move |
The cursor indicates something that should be moved |
e-resize |
The cursor indicates that an edge of a box is to be
moved right (east) |
ne-resize |
The cursor indicates that an edge of a box is to be
moved up and right (north/east) |
nw-resize |
The cursor indicates that an edge of a box is to be
moved up and left (north/west) |
n-resize |
The cursor indicates that an edge of a box is to be
moved up (north) |
se-resize |
The cursor indicates that an edge of a box is to be
moved down and right (south/east) |
sw-resize |
The cursor indicates that an edge of a box is to be
moved down and left (south/west) |
s-resize |
The cursor indicates that an edge of a box is to be
moved down (south) |
w-resize |
The cursor indicates that an edge of a box is to be
moved left (west) |
text |
The cursor indicates text |
wait |
The cursor indicates that the program is busy (often a
watch or an hourglass) |
help |
The cursor indicates that help is available (often a
question mark or a balloon) |
Example
The following example changes the cursor:
<html>
<head>
<script type="text/javascript">
function changeCursor()
{
document.body.style.cursor="crosshair";
document.getElementById("p1").style.cursor="text";
}
</script>
</head>
<body>
<p id="p1">This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text.</p>
<input type="button" onclick="changeCursor()"
value="Change cursor" />
</body>
</html>
|
Try-It-Yourself Demos
cursor
- Change the cursor
Complete Style Object Reference
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|