Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3396848
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:27:23+00:00 2026-05-18T04:27:23+00:00

When moving over a dragable element I want the cursor to change to a

  • 0

When moving over a dragable element I want the cursor to change to a hand and upon mouse down until mouse up I want to change to a “grabbing” hand. What is the proper, cross browser compatible way to do this?

Googling this only brings up websites from year two thousand, with tutorials on IE6. BLA!

Are there any good MODERN tutorials on this topic out there? If not, someone needs to write one. That’d make an excellent smashing magazine article!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:27:24+00:00Added an answer on May 18, 2026 at 4:27 am

    Using the jQuery framework, you could do something like this:

    // define a hover event so that when you hover over and out of the dragable element
    // the cursor changes accordingly
    $('#element').hover(function(){
        $(this).css('cursor','move');
    } , function(){
        $(this).css('cursor','default');
    });
    
    // this cursor property is only supported in mozilla, but here you can insert
    // an image as other posters have specified
    // this event changes the cursor when you click the dragable element
    $('#element').mousedown(function(){
        $(this).css('cursor','-moz-grabbing');
    });
    
    // this event changes the cursor back to the default type after you let go 
    // of the dragable element
    $('#element').mouseup(function() {
        $(this).css('cursor','default');
    });
    

    For a live example, check this out: http://jsfiddle.net/EaEe3/ Let me know if you need more information. I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to know whether the mouse is moving over the particular control or point
I want to create hover effect on StaticBitmap - If the cursor of mouse
I'm moving an old VBScript web site over to ASP.NET, so I'm starting to
When moving a file from old.package to new.package I want two things to happen:
I have been moving over to JavaScript (esp. canvas) from Flash / Flex /
I have a legacy PHP form that I'm moving over to Drupal 6. I'm
I’m hoping to investigate/implement a CDN (initially just via a sub-domain, though moving over
Just moving over to Vim at the moment. In TextMate I could format code
Imagine a surface which has got 2 points which are moving over the surface
Moved from a Web Application to a Web Site, began moving code over... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.