admin管理员组文章数量:1323150
I want to know how to change the cursor point to zoom in and zoom out symbol.
I know how to change the cursor to busy, wait and etc,
document.manual_production.style.cursor='wait';
but I don't know how to change the cursor to that for zooming in and out.
I got it by this way
document.manual_production.image1.style.cursor='-moz-zoom-out';
I want to know how to change the cursor point to zoom in and zoom out symbol.
I know how to change the cursor to busy, wait and etc,
document.manual_production.style.cursor='wait';
but I don't know how to change the cursor to that for zooming in and out.
I got it by this way
document.manual_production.image1.style.cursor='-moz-zoom-out';
Share
edited Feb 8, 2011 at 9:22
Yi Jiang
50.2k16 gold badges138 silver badges136 bronze badges
asked Sep 7, 2010 at 7:52
hussainhussain
313 silver badges5 bronze badges
3 Answers
Reset to default 4And for Chrome/Safari/WebKit, there is cursor: -webkit-zoom-in
and cursor: -webkit-zoom-out
.
Your going to need a cur icon for that:
document.manual_production.style.cursor = 'url(/path/to/mycursor.cur) 0 0, pointer';
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.
本文标签: javascriptChange the cursor to zoom in and zoom out symbolStack Overflow
版权声明:本文标题:javascript - Change the cursor to zoom in and zoom out symbol - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742143477a2422686.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论