Results 1 to 4 of 4

Thread: Mouse changing...not what you think...

  1. #1
    Join Date
    May 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mouse changing...not what you think...

    I have noticed that when you make the mouse cursor change when you hover a link that it tries to change to the hand pointer before it changes to the one you want it to...Is there a way to avoid this?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    When you say 'tries to change to the hand' do you mean you see the hand for a split moment before the alternate cursor appears? Post your code or a link to your page so I can be sure but, it could be you have a target area that uses the hand cursor that is not entirely covered by the area defined for the alternate cursor. This can happen with absolute or relative positioning as well as having two elements nested, both of which are active as links but only one of which is assigned the alternative cursor. Also, it can matter how you assign the alternate cursor. If using css pseudo class hover, might as well go for broke and assign the alternate cursor for all states of the element as, the cursor will only be influenced when over the element anyway. If you are using the onmouseover or some other event, why? That's inefficient and could be the problem.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes, it changes for a split second and then changes to the one i have assigned, here is the code i am using:
    <style>body, a:hover{cursor: url(http://xquizit.xangans.com/cursors/arrow_red.cur);}</style>

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Try:

    <style>
    a {
    cursor: url(http://xquizit.xangans.com/cursors/arrow_red.cur);
    }
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •