淡入和淡出效果在IE8中不适用于文本框? [英] Fade in and fade out effect doesnot work in IE8 for a textbox?

查看:71
本文介绍了淡入和淡出效果在IE8中不适用于文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在jquery中使用过blink效果。它在谷歌浏览器浏览器中工作正常,但不适用于IE8。这是我的代码:



Hi,
I have used blink effect in jquery. It works fine in google chrome browser, but doesnot work on IE8. Here is my code:

$(function() {
    blinkeffect('#txthelpline');
})

$('#txthelpline').fadeIn(2000, function() {
    this.style.removeAttribute('filter');
});
    function blinkeffect(selector) {
        $(selector).fadeOut('slow', function() {
            $(this).fadeIn('slow', function() {
                blinkeffect(this);
            });
        });
    }

推荐答案

(function(){
blinkeffect( ' #txthelpline');
})
(function() { blinkeffect('#txthelpline'); })


' #txthelpline')。fadeIn( 2000 ,function(){
this .style.removeAttribute(' filter');
});
function blinkeffect(selector){
('#txthelpline').fadeIn(2000, function() { this.style.removeAttribute('filter'); }); function blinkeffect(selector) {


(selector).fadeOut(' 慢',function(){
(selector).fadeOut('slow', function() {


这篇关于淡入和淡出效果在IE8中不适用于文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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