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

change the cursor style in an input text box?

Status
Not open for further replies.

plectrum

Programmer
Feb 16, 2004
21
0
0
US

Hi,
Is it possible to change the cursor style in an input text field from thin vertical line into solid blinking block? Does CSS support this style?

Thx,
 

You could try defining your own cursor, and implement it using the url() syntax of CSS, but I'm not sure how widely supported this is.

Hope this helps,
Dan
 
To further Dan's post, you can use this gracefully:
Code:
<style type="text/css">
input {
  cursor: url("first.cur"), url("second.cur"), text;
}
</style>
Which works the same as the font declaration. If the former cursors cannot be used for some reason, it will degrade to the generic one. List of available generic cursors is here:
 
onfocus="this.style.cursor = 'hand';" also works for instance, don't know the blink off hand.

;)

LikeThisName <- ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top