Log in

View Full Version : Mouse changing...not what you think...



Black Roses Burn Brightly
05-18-2005, 09:32 PM
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?

jscheuer1
05-18-2005, 10:04 PM
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.

Black Roses Burn Brightly
05-18-2005, 10:12 PM
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>

jscheuer1
05-19-2005, 02:20 AM
Try:

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