-1

I am currently trying to create a text box with a custom cursor. Is this possible? Can the text box text cursor be tracked in anyway?

EDIT My apologies: not enough info. I understand you can change the mouse cursor with css. What I am trying to achieve is a custom cursor for the blinking text cursor, within the text box.

vulpcod3z
  • 194
  • 1
  • 12
  • 1
    It is possible, google docs shows cursors for all the users that have the doc open. However, they implemented everything at a very low level, the cursor is a div, and there's a lot of tracking required. That's what you'd have to do, there's no easy way – Ruan Mendes Jun 25 '14 at 16:07
  • Thanks. Any clue where to start? I really haven't the slightest on trying to track a cursor like that. – vulpcod3z Jun 25 '14 at 16:12
  • Read the KK's answer... You can change the cursor within a textbox using `textbox:hover{cursor: url(images/my-cursor.png), auto;}` – Eric Wu Jun 25 '14 at 16:24
  • 1
    @EricWu Did you even read the question? Not the mouse cursor, the blinking text cursor. Ricky, there are a million ways you could do it. We can't possibly show it to you in a QA forum. You should try it yourself and create a separate question for each problem you encounter. SO is not really for asking people how to do something, it's for asking why something doesn't work the way you expect it. – Ruan Mendes Jun 25 '14 at 17:01
  • Sorry, @JuanMendes, apparently, I didn't. Obviously _trying to create a text box with a custom cursor_ is not what my code shows. – Eric Wu Jun 25 '14 at 17:06

1 Answers1

2

Update: As per the revised question from OP.

As far the caret design is concerned, you can try this demo : http://shachi.prophp.org/demo.html

Tutorial: http://www.dynamicdrive.com/forums/showthread.php?p=74576#post74576

Reference: https://stackoverflow.com/a/7339406/2000051

Community
  • 1
  • 1
K K
  • 17,794
  • 4
  • 30
  • 39