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

Sam Sherlock wrote:
thanks guys

the quotes around class did.


I must have been in a coma to have not noticed the syntax highlighting of the key-word class (doh)

I'd hardly say that anyone can have a coma "removed". Usually they just get better and wake up.

ha ha Chris I just noticed that I was trying to spell ',' but just could not get the grey matter around it!!


On 13/11/06, Chris W. Parker <[EMAIL PROTECTED]> wrote:
I'd hardly say that anyone can have a coma "removed". Usually they just get better and wake up.
 
 
(Just having a little fun. Please continue!)


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sam Sherlock
Sent: Friday, November 10, 2006 10:30 PM
To: jQuery Discussion.
Subject: [jQuery] Since updating to 1.0.3 & converting to getJSON

I am having an error only in IE with the following

'expected identifier  string or number'


thats what inferior explorer (v6 on wk2) says

I have googled the error and a number of pages suggest removing the last coma

http://cow.neondragon.net/index.php/1404-Internet-Explorer-_javascript_-Errors

4089 $.getJSON(
4090 "./ajax/json.php",
4091 { asJSON: 1, class: "jlink", id: htmlDoc },
4092 function(json) { .... });

if IE is suggesting the correct line of the error then its 4091 and then in that case the coma is required to separate  the params from the callback

any guidance is appreciated 

_______________________________________________
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