![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| ||||||||
| ||||||||
|
| (a) This has nothing to do with JS. |
|
(b) This is not a fallback. |
|
You just overwrite your custom-pointer property with the standard one. In your case you will *always* get a cursor: pointer. |
|
Small wonder... |
|
How about (a) obtaining some *basic* knoledge of css |
|
(b) post into newsgroups dealing with those issues |
|
x'post and f'up set |
|
Gregor --http://photo.gregorkofler.at::: Landschafts- und Reisefotografiehttp://web.gregorkofler.com ::: meine JS-Spielwiesehttp://www.image2d.com ::: Bildagentur für den alpinen Raum |
#2
| |||
| |||
|
|
On Apr 21, 4:31 am, Gregor Kofler <use... (AT) gregorkofler (DOT) at> wrote: You just overwrite your custom-pointer property with the standard one. In your case you will *always* get a cursor: pointer. I thought I was simply following the instructions on something like http://www.quirksmode.org/css/cursor.html.... Small wonder... Actually, it's a real puzzle how MSIE 7 is more W3C-compliant over this little thing than Opera and even Firefox! |
#3
| |||
| |||
|
|
Eh? How to get that? Firefox does support 'hand'. 'hand' is a MS invention. IE7 does not support 'url' or other graphic formats which is part of the W3 recommendation. |
|
If graphic is use FF for does require a generic fallback but this too is in keeping with the recommendation: "The user agent retrieves the cursor from the resource designated by the URI. If the user agent cannot handle the first cursor of a list of cursors, it should attempt to handle the second, etc. If the user agent cannot handle any user-defined cursor, *it must use the generic cursor at the end of the list.*" |
|
A recommended approach for defining a platform-independent custom cursor is to create a PNG [PNG01] image [...] |
#4
| ||||||
| ||||||
|
|
IE7 should support 'url'; the question is the format of the graphic file that represents the custom cursor. |
|
I think this is the best rule of thumb in practice indeed: cursor: url('cursor.cur'), url('cursor.ani'), url('cursor.png'), url('cursor.svg'), auto; |
|
In conjunction with a great image converter like:http://www.irfanview.com |
|
A strange remark from W3:http://www.w3.org/TR/SVG/interact.html#CursorElement | A recommended approach for defining a platform-independent | custom cursor is to create a PNG [PNG01] image [...] |
|
I couldn't get PNG01 to work at least on MSIE. But then, even their own demo on MSDN doesn't seem to work here (Vista MSIE 7.0.6., second button '#2'):http://samples.msdn.microsoft.com/wo...or/dhtml/refs/... |
|
-- Bart |
#5
| |||||
| |||||
|
|
Bart Van der Donck <b... (AT) nijlen (DOT) com> wrote: ... In conjunction with a great image converter like: http://www.irfanview.com How about GIMP?? *Looks really powerful...it may be all I'll ever need! * |
|
I wonder if it does cursors (.ani, .cur), though... any 100% free cursor creation programs you know of -- without spy/malware?? |
|
A strange remark from W3: http://www.w3.org/TR/SVG/interact.html#CursorElement * | A recommended approach for defining a platform-independent * | custom cursor is to create a PNG [PNG01] image [...] Well! *Is that true?? |
The PNG-format is heavily promoted by|
And what's PNG01?? * |
|
Is that also .png or does it end .png01?? |
#6
| |||||||
| |||||||
|
|
cursor: url(...), pointer; |
|
Sure. You've also noted, that it says: "Since Explorer 6 and 7 support pointer, there's no more reason to use hand, except when older Explorers are part of your target audience. In that case, the only cross-browser syntax is... ...Note that the two declarations must be in this order." (You see: It's only to provide "hand" for IE5 and 5.5, coz' they don't know "pointer".) |
|
Well, if you're past the "basic" level you should not need to ask "what a fallback is". |
|
And you should know the difference between "font-family: Arial, Verdana;" and "font-family: Arial; font-family: Verdana;". |
|
A-ha. So what's the JS issue of your problem? |
|
SNIP I could also point out, that you shouldn't quote signatures. But I suppose one has to be happy, that you're not top-posting. |
|
SNIP |
#7
| |||
| |||
|
|
On Apr 21, 2:44 pm, Gregor Kofler <use... (AT) gregorkofler (DOT) at> wrote: And you should know the difference between "font-family: Arial, Verdana;" and "font-family: Arial; font-family: Verdana;". Actually, verdana and arial look extremely similar. |
|
A-ha. So what's the JS issue of your problem? I was asking about how to use JavaScript to customize mouse pointers. Turns out the answer I got concerned using CSS, but at the time I did not know that and so just "ran" with the answer. |
#8
| |||
| |||
|
|
On Apr 21, 2:44 pm, Gregor Kofler wrote: And you should know the difference between "font-family: Arial, Verdana;" and "font-family: Arial; font-family: Verdana;". Actually, verdana and arial look extremely similar. |
|
I could also point out, that you shouldn't quote signatures. But I suppose one has to be happy, that you're not top-posting. This is really bizarre -- why not quote signatures??? Very, very strange rules...I mean, why do people have signatures to their posts if they don't want their signatures quoted?? |
![]() |
| Thread Tools | |
| Display Modes | |
| |