From: Linda on
Is there a way to script the appearance of the cursor in a textarea?
Rather than a blinking cursor, I want to have an image.

Thanks,
Linda
From: Jukka K. Korpela on
Linda wrote:

> Is there a way to script the appearance of the cursor in a textarea?
> Rather than a blinking cursor, I want to have an image.

Cursor appearance is something that you can set (or, actually, just suggest)
in CSS, e.g.

textarea { cursor: url(mycursor.cur); }

Browser support is still limited and generally limited to some image
formats.

You can of course set the cursor property in JavaScript, but there's nothing
special about it, as compared with setting style properties in general.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

From: nick on
On Apr 12, 10:41 am, "Jukka K. Korpela" <jkorp...(a)cs.tut.fi> wrote:
> Linda wrote:
> > Is there a way to script the appearance of the cursor in a textarea?
> > Rather than a blinking cursor, I want to have an image.
>
> Cursor appearance is something that you can set (or, actually, just suggest)
> in CSS, e.g.
>
> textarea { cursor: url(mycursor.cur); }

I think she wants to control the look of a text cursor, not a mouse
cursor... i.e., the vertical blinking line in the textbox.

Linda: AFAIK this is not possible in any straightforward or widely-
supported kind of way.
From: Thomas 'PointedEars' Lahn on
Jukka K. Korpela wrote:

> You can of course set the cursor property in JavaScript, but there's
> nothing special about it, as compared with setting style properties in
> general.

It would be better, if not correct, to say "_with_ JavaScript" instead,
because (Mozilla.org) JavaScript is but one of many languages with which
implementations of DOM APIs can be used, whereas implementations of W3C DOM
Level 2 Style CSS are _not_ part of the programming language. Other
examples include other ECMAScript implementations like Microsoft JScript,
Google V8 JavaScript, Apple JavaScriptCore, Opera ECMAScript, Konqueror
JavaScript; and Java.

<http://www.w3.org/TR/DOM-Level-2-Style/Overview.html#contents>


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
From: Linda on
> I think she wants to control the look of a text cursor, not a mouse
> cursor... i.e., the vertical blinking line in the textbox.

That is correct.

> Linda: AFAIK this is not possible in any straightforward or widely-
> supported kind of way.

In particular, it will only be on an iPad and so for Mobile Safari.


Linda