如何在html中显示闪烁/闪烁的链接
我需要一个每 500 毫秒闪烁一次、持续 5 秒的链接... 我记得很久以前有一个这样的链接,但删除了它,因为只有在它可见时才能单击它。有解决方法吗?
I am in need a link that will flash every 500 milleseconds, for a duration of 5 seconds...
I remember long ago having a link like this, but deleted it because one could only click it when it was visible. Is there a workaround for that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
试试这个:
Try this:
Script.aculo.us 中有一个 JavaScript 函数可以做到这一点:看看 Effect.Pulsate
There is a JavaScript function in Script.aculo.us to do that : Have a look on Effect.Pulsate
有CSS
,但这会一直闪烁您的链接,您需要一些 javascript 来在 5 秒后更改样式。
There is CSS
but that will blink your link all the time, you would need some javascript to change the style after 5 seconds.
请记住始终牢记所有用户的可用性。特别是当你让某些东西以一定的频率闪烁时。 请小心。
Remember to always keep usability for all users in mind. Especially if you're making something flash at a certain frequency. Just be careful.
“A”快速 JQuery UI 版本...
链接需要 CLASS 'flasher',并且 ID
将在鼠标悬停时启动...并在鼠标移出时停止。
还将辅助颜色作为悬停添加到“A”链接...这将有助于掩盖开始时的初始间隔延迟。
'A' quick JQuery UI version...
Links need CLASS 'flasher', and an ID
Will start on mouseover...and stop on mouseout.
Also add the secondarycolor as a hover to the 'A' link...it will help mask the initial interval delay at start.