how to use two cursors in css?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matheussousuke
    New Member
    • Sep 2009
    • 249

    how to use two cursors in css?

    I'm using

    Code:
    body, a, a:hover
    {
    cursor: url(http://forum.mghospedagem.com/ffcursormouse8bits.png), hand;
    }
    to change the cursor image, it works, but when I point the mouse on a link. it keeps the same image.

    How can I make it change the image when the cursor is over link?

    I tried

    Code:
    body, a, a:hover
    {
    cursor: url(http://forum.mghospedagem.com/ffcursormouseup8bits.png), pointer;
    cursor: url(http://forum.mghospedagem.com/ffcursormouse8bits.png), hand;
    
    }
    but didn work.
  • angiko
    New Member
    • Oct 2011
    • 3

    #2
    You have to use like this

    body, a {
    cursor: url(http://forum.mghospedagem.com/ffcursormouseup8bits.png), pointer;
    }

    a:hover{
    cursor: url(http://forum.mghospedagem.com/ffcursormouse8bits.png), hand;
    }

    Comment

    • matheussousuke
      New Member
      • Sep 2009
      • 249

      #3
      Originally posted by angiko
      You have to use like this

      body, a {
      cursor: url(http://forum.mghospedagem.com/ffcursormouseup8bits.png), pointer;
      }

      a:hover{
      cursor: url(http://forum.mghospedagem.com/ffcursormouse8bits.png), hand;
      }


      Tx, it worked, but I gave u the wrong sequence, sorry.


      It has to be like this:


      Code:
      body, a { 
      cursor: url(http://forum.mghospedagem.com/ffcursormouse8bits.png), pointer; 
      } 
      
      a:hover{
      cursor: url(http://forum.mghospedagem.com/ffcursormouseup8bits.png), hand; 
      }

      Comment

      • matheussousuke
        New Member
        • Sep 2009
        • 249

        #4
        It's not working with IE.

        Comment

        • angiko
          New Member
          • Oct 2011
          • 3

          #5
          Yesss It doesnt work on IE. you have to use javascript ^^

          Comment

          Working...