View Full Version : moving the mouse in jscript

12-21-2003, 02:14 PM
i am just new to javascript and was wondering if it is possible to move the mouse about the screen in jscript format.

and could anyone tell me about changing the icon of the mouse.

and the million pound question can you make a trail of wrichting on the mouse

thinks twice again narf
(better known as paul)

12-21-2003, 02:17 PM
er thats writing and thanks
not wriching and thinks

12-21-2003, 02:46 PM
The first one is not possible. The second one is limited - while you can change the cursor, you can only change it to a selected amount of pointers. Check out this (http://www.w3.org/TR/REC-CSS2/ui.html#propdef-cursor) reference for more information. For a trailer, check out this script at DynamicDrive: http://dynamicdrive.com/dynamicindex13/trailer.htm.

Hope that helps!

Happy coding! :)

Mr J
12-21-2003, 09:21 PM
I think you can now use the CSS attribute cursor:url(file.cur) to depict your own cursor image

12-21-2003, 10:49 PM
IE 6.0 only, I believe. Not exactly a supported feature..

Happy coding! :)

Roy Sinclair
12-22-2003, 10:52 PM
Originally posted by nolachrymose
IE 6.0 only, I believe. Not exactly a supported feature..

Happy coding! :)

It's a W3C defined standard supported by IE 6.0 and later which means that most people will now support it (I believe the current versions of Moz/Firebird support it, don't know about Safari or Opera).

Narf, are you looking for a script that allows you to "draw" with the mouse? I hope you aren't looking for another one of those lame "things that follow the mouse around" scripts.