Re: Using JavaScript to Customize Mouse Pointer Graphic??



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/

.



Relevant Pages

  • Re: Script for Hiding/Un-Hiding Text On Click
    ... one browser that supports getElementById, ... attitude about browser scripting. ... There just aren't any agents out there that support one and not the ... You really are as inept as I thought you were. ...
    (comp.lang.javascript)
  • Re: Legacy code/browser compatibility
    ... excuse for never learning what could be achieved by hiding ... "How old must a browser be before you stop worrying about it? ... has ventured way off topic into fallback form/basic HTML support, ... Fall back may be for when javascript is unavailable but on ...
    (comp.lang.javascript)
  • Re: Online banking survey
    ... In the case of Nationwide, they state explicitly on their Browser ... that they are unable to offer _technical support_ for their use. ...
    (uk.comp.os.linux)
  • Re: OT: browser hostile sites
    ... The last one is so bad that only powerstrip shutdown is possible. ... Either an older version or browser that doesn't support the newer web ... I hit a site that was firefox unfriendly (html incompatible) so I loaded IE just that once -- and BOOM -- my file search function doesnt work any more!! ... One case of a browser hostile site was checked and IE indeed rendered the site "correctly"; the site owner claimed their code was "universal". ...
    (sci.electronics.design)
  • Re: Material that does no scroll in web page
    ... there is no web browser that supports the entire CSS2 specification. ... Obviously, CSS2 support is much better in Firefox/Opera, but I'm sure if it was so easy to upgrade CSS support in IE, Microsoft would have done so already. ... It's a hack because the stylesheet abuses the "position" and "margin" properties for something they have not been intended for. ...
    (comp.infosystems.www.authoring.stylesheets)