Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change mouse pointer?

Status
Not open for further replies.

forecasting

Programmer
May 2, 2002
130
I have an asp page that is running Office Web Components. When the user mouses over a cell in the spreadsheet component, I use an event to trigger changing the mouse pointer from an arrow to a hand. The event triggers properly but I don't have the DHTML syntax to change the pointer. I tried

form1.owcSS1.style.cursor = hand
and
form1.style.cursor = hand

No luck. I get an error message stating that the object does not support this property.

Any help on code that changes the mouse pointer?
 
No luck.

When I try to read the object

msgbox form1.style.cursor & " :form"
or
msgbox form1.owcSS1.style.cursor & " :SS"

I also draw a blank.
 
I don't think you need to use the event to change the style. Just add the style to the object eg:

Code:
<span style=&quot;cursor: hand&quot;>Mouse text</span>
--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top