Web应用程序中的动画光标支持? [英] Animated cursor support in web applications?

查看:140
本文介绍了Web应用程序中的动画光标支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何网络浏览器是否支持动画光标?

Do any web browsers support animated cursors?

我一直在搜索网页,将自定义光标添加到我的网络应用程序。我已经找到了很多非动画(.cur)和动画(.ani)游标,并使用正确的CSS,使我的应用程序有自定义游标!看来,我尝试的Web浏览器不支持动画游标,我想知道是否有可能将动画游标放入我的Web应用程序。

I've been searching the web to add custom cursors to my web application. I've been finding a lot of non animated (.cur) and animated (.ani) cursors, and using the correct CSS so that my application has custom cursors! It seems that the animated cursors are not supported in the web browsers I tried and I was wondering if there is any way possible to put animated cursors into my web application.

推荐答案

在做了一些更多的研究后,我不认为这是可能的。它似乎没有任何浏览器支持动画游标截至2012年8月2日使用CSS cursor 属性。我想这可以使用JavaScript来重复更改游标属性的值每几帧,以使它看起来动画,但这可能会比它更有价值。

After doing some more research, I don't think it's possible at the moment. It doesn't seem that any of the browsers support animated cursors as of 2/8/2012 using the CSS cursor property. I suppose it could be done using JavaScript to repeatedly change the value of the cursor property every few frames to make it appear animated, but that may be more trouble than it is worth.

动画光标文件.ani文件不起作用。所有5个主要的网络浏览器不会显示光标。如果你尝试一些CSS,像 cursor:url('animated.ani'),那个光标不会显示!

Animated cursor files .ani files do not work. All 5 major web browsers will not show the cursor. If you try some CSS like, cursor: url('animated.ani'), that cursor will not show up!

如果您将光标设置为动画GIF文件,它只会显示在某些浏览器上,并且很不稳定,例如 cursor:url('animated.gif')光标在Firefox和Chrome中工作,但它不是动画,光标在IE9或Opera中根本不工作,它在Windows版本的Safari中做了一些奇怪的事情 - 它的工作原理,但是只有当我垂直移动光标屏幕,当光标没有移动或水平移动时,根本没有动画。感谢Brutallus使用动画gif的想法,即使它没有工作!

If you make the cursor an animated gif file, it only shows up on some browsers and it's temperamental, like cursor: url('animated.gif'), the cursor works in Firefox and Chrome but it is not animated, the cursor does not work at all in IE9 or Opera, and it did something really weird in the Windows version of Safari - it works but is only animated when I move the cursor vertically on the screen, and did not animate at all when the cursor was not moving or was moving horizontally. Credit to Brutallus for the idea to use an animated gif even though it did not work!

这似乎没有浏览器支持动画光标这是一个耻辱因为我真的认为它会为某些Web应用程序增加一些深度。我不主张为大多数网站使用动画游标,因为它们是非常讨厌,但有一些罕见的情况下,他们可以是有用的,如游戏可能添加到游戏的主题的HTML5游戏。

It doesn't seem that browsers support animated cursors at this time which is a shame because I really think it would add some depth to certain web applications. I don't advocate using animated cursors for most websites because they are extremely annoying, but there are some rare situations where they can be useful, such as a HTML5 game where the cursor can potentially add to the theme of the game.

这篇关于Web应用程序中的动画光标支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆