PDA

View Full Version : mouse pointer change


talalsultan
03-06-2003, 10:12 AM
hi all,

i was wondering how i could change the mouse pointer to a Gif image i have. For example, I would like the icon to change from simple default icon to a Gif when i go over a certain area. i have the function that detects when the cursor should be changed but i don't know how to change it and load my own Gif.

thanks
talal

GoHF
03-06-2003, 03:04 PM
IE6 or later only (don't know about the new versions of other browsers)

<whateverObject style="cursor: url('cursor.cur')">

This only works with cursor files, not GIF. First convert your GIF to a .CUR or .ANI file. You can do this by using any demo cursor tool, like Michaelangelo. Then, just use that style like I said. Beware, however, this is ONLY IE6+. I cannot guarantee it for any other browsers.

Example -> http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/cursor_c.htm

talalsultan
03-06-2003, 04:37 PM
yes for IE6+, thanks! :)