Jump to content

Customer cursor

- - - - -

  • Please log in to reply
1 reply to this topic

#1
welton122

welton122

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
Hi all,

I need to change the users cursor (using JavaScript) to a image of my choice. Whats the easiest way of doing this??

P.s i know its prob easier using CSS but this needs to be done using JavaScript

I already have my .CUR file but am having problems with the code

so far i have the following:
<body onload="document.body.style.cursor = \"url('myImage.cur'),help\";">

but i seem to have hit a bit of a snag and Google doesn't seem to be helping at all.

any help??

Thanks,
J

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
I believe this was only possible in earlier versions of Internet Explorer, I am unsure if you can do it now.

For example, most browsers allow the change to default cursors:
CSS Property cursor Examples

Firefox and Opera do not have the url() parameter for cursor for example.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users