Get cursor to display in textarea

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
chaser7016
Forum Commoner
Posts: 34
Joined: Sat Nov 04, 2006 3:22 pm

Get cursor to display in textarea

Post by chaser7016 »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi i have the following code and I want the standard cursor to appear when user clicks in textarea and to follow along while user is typing in textarea box.

Code: Select all

** deleted
Cheers, Chaser7016


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Last edited by chaser7016 on Fri Apr 06, 2007 8:26 pm, edited 2 times in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What's a "standard cursor" and how is this PHP Code?
chaser7016
Forum Commoner
Posts: 34
Joined: Sat Nov 04, 2006 3:22 pm

Post by chaser7016 »

umm the blinking cursor you see in every text or comment box. I am seeing it now as I create this message.

As for this being a php problem I guess it is not, but the textarea code appears in this php file of mine.

..............
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Post by JAB Creations »

Custom cursors are part of styling and thus CSS...

Code: Select all

textarea {
 cursor: url('cursor-pointer.cur'), default;
}
Gecko 1.8 and newer supports cursors except for ANI extension.

IE supports all cursors as far as I know.

They both refuse to use the same relative urls however! I recommend using absolute urls for cursors.

No other browsers support cursors at least through CSS.

This ~IS~ a valid standard to include cursor files. :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Get cursor to display in textarea

Post by RobertGonzalez »

chaser7016 wrote:feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi i have the following code and I want the standard cursor to appear when user clicks in textarea and to follow along while user is typing in textarea box.[/quote]

That standard cursor does show in textareas and follow the user along by default in just about all browsers. What are you after here?
Post Reply