This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dragabble custom cursors using jquery

 
Padma Priya
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd use CSS. When the drag operation starts, you can assign a class, or augment the existing classes, to show a custom cursor.
 
Padma Priya
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic