views:

29

answers:

2

hi

i want to know how to change the cursor point to zoom in and zoom out symbol.

i know how to change the cursot point as busy,wait and etc.,

document.manual_production.style.cursor='wait';

but i dont know, the cursont point for zoom in and zoom out.

oh ok i got it by this way document.manual_production.image1.style.cursor='-moz-zoom-out';

thanks everyone

+1  A: 

Your going to need a cur icon for that:

document.manual_production.style.cursor = 'url(/path/to/mycursor.cur) 0 0, pointer';
sheeks06
what is the path this " /path/to/mycursor.cur"
hussain
location of your cur file.
sheeks06
oh ok i got it by this way
hussain
document.manual_production.image1.style.cursor='-moz-zoom-out';
hussain
+1  A: 

What @sheeks06 is saying is that you need to upload your own cursor image. Google for 'free cursors', wade through the heaps of idiotic animated cursors until you find one you need, upload it to your web server.

url(/path/to/mycursor.cur) means the place you uploaded your cursor.

-moz-zoom will only work in Mozilla Firefox, not in most other browsers.

Litso
Thanks for further elaborating :)
sheeks06
I had the feeling the asker might need some extra info, based on his question/comments :P
Litso