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

  • Home
  • SEARCH
  • 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

I'm moving the mouse over a div and I want to know the mouse
I want an Background image and another image that is moving down over the
I want the ToolTip to follow my mouse moving over one control. For example,
How to know whether the mouse is moving over the particular control or point
I'm having an interesting error upon moving over to g++ compiling on RedHat after
I want to create hover effect on StaticBitmap - If the cursor of mouse
I use a CSS framework which applies transitions on moving the mouse over input
Each time the mouse is moving over a marker I display an infowindow: var
I'm trying to build an image gallery with description when moving over the image.
Imagine a surface which has got 2 points which are moving over the surface

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.