我到目前为止做的是
<script type="text/javascript">
$(function() {
blinkeffect('#txthelpline');
});
function blinkeffect(selector) {
$(selector).fadeOut('slow', function() {
$(this).fadeIn('slow', function() {
blinkeffect(this);
});
});
}
<a href = "javascript:void(0)" id="txthelpline"
onclick ="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'"
style="color:yellow; margin-left:110px; font-size: large; font-weight: bold; font-family: 'Times New Roman', Times, serif; ">Helpline Numbers</a>
热线服务电话号码文字在Google Chrome浏览器上成功闪烁。但它不适用于IE8。
在IE8中,该特定动画不适用于<a>
标签。我不确定为什么会这样,但这也许是因为它不是一个块元素,而是一个内联元素。在任何情况下,如果您将链接放在中<div>
并为其设置动画,则动画将起作用<div>
。
这是将您的链接更改为<div>
:将在IE8中进行动画处理的https://dl.dropboxusercontent.com/u/7909102/test2.html。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句