Forum Moderators: open

Message Too Old, No Replies

Cursors in Mozilla not showing

Cursor:url("blah.img")

         

SethCall

6:29 pm on Oct 1, 2002 (gmt 0)

10+ Year Member



So whats up guys? Can Mozilla simply not change the cursor when you specify "cursor:url("blah.img");?

Seems like a pretty straight-forward, cross-browser css command.

IE renders it appropriately, but Mozilla doesn't. By the way, I am using Windows... Perhaps Mozilla can change the cursor in linux? I am ignorant in this issue.
Thanks!

BlobFisk

12:47 pm on Oct 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure if you can use a basic image file as a cursor type, I think it needs to be a .cur file. I've looked at this in Mozilla 1.0 and it does not render custom url cursors, although it does render the predefined ones (crosshair, hand, pointer, move etc.). You should also always define a standard cursor type also in case the browser does not support url cursors:

p
{
cursor : url("custom.cur"), pointer
}

More here [w3schools.com] and here [echoecho.com].

SethCall

3:15 pm on Oct 2, 2002 (gmt 0)

10+ Year Member



Interesting: I am glad u showed me that page: further issues.

Mozilla and NN can not dipsplay the last 5 or so cursor types, and it also fails on trying to do the custom one.

So... anyone ever try to get mozilla/nn to show custom cursors?

Also, one tiny tiny effect I noticed (not really a big deal)

If you put your mouse on a test link, then the cursor changes to whatever it supposed (at least for the top links) in any browser.

Well, if you use the mouse wheel to scroll, in Mozilla and NN, the cursor will still remained changed to whatever it was, and even though you may pass over other test links, it remains the same. In effect, a mouse scroll, in Mozilla/NN, does not logically equal mouse movement, as its not updating according to whatever its moving over (onMouseOver will not get called with a wheel scroll over it)

However, IE finally gets a leg up here, as it *does* update according to whatever is under the mouse, even when wheel scrolling.

Anyone wanna test this on Mac and Linux? : ) just curious. I dont have a linux box anymore :(

Thanks!