sugan Posted November 21, 2007 Share Posted November 21, 2007 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 More sharing options...
Ingolme Posted November 21, 2007 Share Posted November 21, 2007 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 More sharing options...
aspnetguy Posted November 21, 2007 Share Posted November 21, 2007 or more like your current approach document.getElementById("fm").style.cursor= "url(filename.cur)"; Link to comment Share on other sites More sharing options...
Synook Posted November 22, 2007 Share Posted November 22, 2007 I thought image cursors only work in IE anyway... Link to comment Share on other sites More sharing options...
Ingolme Posted November 22, 2007 Share Posted November 22, 2007 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 More sharing options...
clonetrooper9494 Posted November 28, 2007 Share Posted November 28, 2007 You could try the old fashon way... try opening it in notepad and save as 'mycur.cur' and upload it... no garentees it will work though. I use it for making HTML pages Link to comment Share on other sites More sharing options...
justsomeguy Posted November 28, 2007 Share Posted November 28, 2007 It's generally not the best idea to use Notepad to save non-ASCII files. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.