使用JavaScript自定义鼠标指针图形?? [英] Using JavaScript to Customize Mouse Pointer Graphic??
问题描述
我知道* * style =" cursor:pointer; cursor:hand; < imgtag的$ b / b
属性,但有没有一种方法可以加载
in这个活动的一个人自己的图形?
怎么样?
TIA!
I know about the * * style="cursor: pointer; cursor: hand;" * *
attribute of the <imgtag, but is there a way JavaScript can "load
in" one''s own graphic for such events??
How?
TIA!
推荐答案
战争中的囚徒写道:
Prisoner at War wrote:
我知道* * style =" cursor:pointer; cursor:hand; < imgtag的$ b / b
属性,但有没有一种方法可以加载
in这个事件的一个人自己的图形?
I know about the * * style="cursor: pointer; cursor: hand;" * *
attribute of the <imgtag, but is there a way JavaScript can "load
in" one''s own graphic for such events??
CSS允许
cursor:url(some-cursor.file);
我想但我不喜欢不知道支持的文件格式和浏览器
对该功能的支持: http://www.w3.org/TR/CSS21/ui.html#cursor-props
-
Martin Honnen
http://JavaScript.FAQTs.com /
4月20日上午10点34分,Martin Honnen< mahotr ... @ yahoo.dewrote:
On Apr 20, 10:34 am, Martin Honnen <mahotr...@yahoo.dewrote:
>
CSS允许
cursor:url(some-cursor.file);
我想但我不知道支持的文件格式和浏览器
对该功能的支持: http://www.w3.org/TR/CSS21/ui.html#cursor-props
-
Martin Honnen
http:/ /JavaScript.FAQTs.com/
嗯,我正在使用
style =" cursor:url( db2.gif);<
in< imgtag并且它不起作用...知道我剩下什么
out ??
感谢w3.org链接 - 但我没有技术
背景尚未真正理解参考进入那里! =(
Hmm, I''m using
style="cursor: url(db2.gif);"
within an <imgtag and it''s not working...any idea what I''ve left
out??
Thanks for the w3.org link -- but I don''t have the technical
background yet to really make sense of the reference entry there! =(
战争中的囚徒写道:
Prisoner at War wrote:
嗯,我正在使用
style =" cursor:url(db2.gif);"
in< imgtag并且它不起作用...任何想法我留下了什么
out ??
Hmm, I''m using
style="cursor: url(db2.gif);"
within an <imgtag and it''s not working...any idea what I''ve left
out??
正如我所说,我不知道该功能的浏览器支持,IE
文档表明IE 6及更高版本支持
..cur和.ani光标文件的URL功能:
< http://msdn2.microsoft.com/en-us/library/aa358795(VS.85).aspx>
我认为W3C希望你指定一个at的列表至少一个URL加上
a备份例如
cursor:url(cursor1.cur),auto;
这样即使url定义了游标不支持。
这是一个适用于IE 6的示例:
http://samples.msdn.microsoft.com/wo...s/cursor_c.htm
-
Martin Honnen
http:// JavaScript。 FAQTs.com/
这篇关于使用JavaScript自定义鼠标指针图形??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!