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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse pointer tricks??

Status
Not open for further replies.

HollyVally

Programmer
Jan 3, 2003
48
BD
Hi All,

I have to design a script to get the following: when the user on the input box the mouse pointer becomes an I-beam. How can I keep the mouse as it is for the user OR how can I present a different mouse-pointer to the user?

Any idea?

Thanks in adv.
 
the default behavior is for the cursor to become an i-beam over text inputs...

to change the cursor:
using css:
<input type=&quot;text&quot; style=&quot;cursor:wait;&quot;/>

using js:
element.style.cursor = &quot;wait&quot;;

here's all the cursor types:


=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top