jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes dragabble custom cursors using jquery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dragabble custom cursors using jquery" Watch "dragabble custom cursors using jquery" New topic
Author

dragabble custom cursors using jquery

Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi all,

I am new to Jquery.

Is there any way i can specify my own custom cursor with the draggable Jquery UI plugin.


Thank you in advance!


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61448
    
  67

You'd use CSS. When the drag operation starts, you can assign a class, or augment the existing classes, to show a custom cursor.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi All,


I am not able to get the line 9 work which ever way i try. I am a newbie in jquery and not sure how to go ahead with finding the right solution.

Can you please throw some light on how to change my cursor to a custom cursor.

Below is the code.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61448
    
  67

Why are you assigning CSS to the element at startup in script rather than just using a stylesheet? Why do things the hard way when easier ways exist?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dragabble custom cursors using jquery