Re: Using JavaScript to Customize Mouse Pointer Graphic??
- From: Prisoner at War <prisoner_at_war@xxxxxxxxx>
- Date: Sun, 20 Apr 2008 12:50:19 -0700 (PDT)
On Apr 20, 1:29 pm, Martin Honnen <mahotr...@xxxxxxxx> wrote:
As I said, I don't know of browser support for that feature, the IE
documentation suggests that IE 6 and later support the url feature for
.cur and .ani cursor files:
<http://msdn2.microsoft.com/en-us/library/aa358795(VS.85).aspx>
I think it must be something I'm not doing...doesn't work in MSIE 7,
neither...what am I missing? Let's see...
style="cursor: url(db2.gif);"
For "url" am I supposed to put a pathname? Everything is offline
right now...
style="cursor:../images(db2.gif);"
No matter if I use absolute or relative paths, that doesn't work in
any browser. I think I'm not using the format correctly, but I don't
know where I'm doing something wrong.
And I think the W3C wants you to specify a list of at least one URL plus
a backup e.g.
cursor: url(cursor1.cur), auto;
so that the cursor is defined even if url is not supported.
Here is an example that works with IE 6:http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/...
FANTASTIC!!
Strange thing, though...using IE 7 (does *not* work in FF or Opera),
only Cursor #1 works; Cursor #2 is like a dead link or something;
nothing happens, no change in mouse pointer graphic...guess they
forgot to load up an image file or something!
OMG, I can't believe MSIE is more W3C-compliant than FF and Opera!!
LOL!!
Oddly enough, I can't apply my own graphic for some reason...are the
files supposed to end in ".cur" for some reason?? I must be doing
something wrong in how I'm telling the browser to "use *this*
file"....
--
Martin Honnen
http://JavaScript.FAQTs.com/
.
- Follow-Ups:
- Re: Using JavaScript to Customize Mouse Pointer Graphic??
- From: Prisoner at War
- Re: Using JavaScript to Customize Mouse Pointer Graphic??
- References:
- Using JavaScript to Customize Mouse Pointer Graphic??
- From: Prisoner at War
- Re: Using JavaScript to Customize Mouse Pointer Graphic??
- From: Martin Honnen
- Re: Using JavaScript to Customize Mouse Pointer Graphic??
- From: Prisoner at War
- Re: Using JavaScript to Customize Mouse Pointer Graphic??
- From: Martin Honnen
- Using JavaScript to Customize Mouse Pointer Graphic??
- Prev by Date: Re: to learn jQuery if already using prototype
- Next by Date: NS_ERROR_DOM_HIERARCHY_REQUEST _ERR YUI Example
- Previous by thread: Re: Using JavaScript to Customize Mouse Pointer Graphic??
- Next by thread: Re: Using JavaScript to Customize Mouse Pointer Graphic??
- Index(es):
Relevant Pages
|