Thanks, Chris, Glen…

 

Rick

 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan
Sent: Monday, November 13, 2006 6:31 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Text pointer to hand pointer on MouseOver...

 

I replied to this a long time ago... on the wrong thread... oops.
Glen's got it right Rick.

Here's my old reply for what it's worth.
---------
obj.style.cursor = default; // arrow
obj.style.cursor = pointer; // the little hand. could put "hand" but that's an IE only deal. don't do it.
obj.style.cursor = wait; // hour glass.
obj.style.cursor = move; // i *think* this one is the compass rose lookin' icon.
obj.style.cursor = help; // this is the regular default arrow with a "?" superimposed.

... there are others, but "default", "pointer", and "wait" are the ones you'll prolly use most.

a jQuery way of doing this would be something like:

$("td").css("cursor","pointer");

or

$.("#MyElementID").css("cursor", "wait");

using any of these methods, you don't have to worry about mouseover and mouse out. the browsers (all of them to my knowledge) handle this automatically. Just set the style, and you'll be fine.

Chris


Glen Lipka wrote:

("#whatever").css("cursor","pointer")

 

Or put it in the CSS. whatever{ cursor: pointer  }
 

Glen
 

On 11/13/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:

try setting the CSS cursor property

http://www.w3schools.com/css/pr_class_cursor.asp

Laurent

On 11/13/06, Rick Faircloth < [EMAIL PROTECTED]> wrote:

How could I cause the mouse pointer to change from the

text select pointer to a hand when a user mouses over

text before clicking?

I'm working with this jQuery code …

$(document).ready(function() {

        $('#ann').find('dd').hide().end().find('dt').click(function() {

         var answer = $(this).next();

         if (answer.is(':visible')) {

             answer.slideUp();

         } else {

             answer.slideDown();

         }

     });

});

Rick


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



 
 


 
 
_______________________________________________
 
jQuery mailing list
 
discuss@jquery.com
 
http://jquery.com/discuss/
 
  
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to