Jump to content

image cursor


sugan

Recommended Posts

I want to change the default cursor to image cursor, I have tried below mentioned code

<div id="fm">This is my test page</div><script language=javascript>document.getElementById("fm").style.cursor="Arrow.yellow.cur";</script>

It work's fine in IE but it does not work in NS. Please help me to solve this issue Regards,Sugan

Link to comment
Share on other sites

Try CSS:div#fm { cursor: url(filename.cur);}You can use url() to reference an external cursorHere's a list of default cursors(source: W3Schools):autocrosshairdefaultpointermovee-resizene-resizenw-resizen-resizese-resizesw-resizes-resizew-resizetextwaithelp

Link to comment
Share on other sites

I've done tests on my own, I even tried a GIF format image, it worked in Firefox and Opera, but not IE. I guess you'd need to save it as .cur to do that. I don't have an image editor that does it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...