2011-06-24 28 views
1

我有下面的代码自动refeashing DIV原因jQuery的内部DIV不工作

// hover show delete and refer button 
    $('.friendsArea').livequery("mouseenter", function(e){ 
     $(this).children("a.delete").show();    
     $("a.PostShowHide_link", this).show();      
    }); 

    // mouseout hide delete and refer button 
    $('.friendsArea').livequery("mouseleave", function(e){ 
     $('a.delete, a.PostShowHide_link').hide(); 
    }); 

要显示和隐藏的鼠标悬停记录列表的链接和鼠标移开

我就自动工作刷新类似于Facebook和Twitter 我用下面这段代码刷新内容加载到一个div并刷新

var auto_refresh = setInterval(
    function(){ 
    $('#posting').load('posts.php').fadeIn("slow"); 
    }, 10000); // refresh every 10000 milliseconds 
}); 

的但当有史以来d四是通过上面的代码显示在鼠标悬停在使用这些链接不再显示

+0

是#posting接收.friendsArea类的元素? – kwicher

+0

#posting是刷新的主要div,它包含单个帖子.friendsArea,其中包含单个链接 – Oudin

回答

0

刷新解决它,而不是使用“.livequery()”我恢复到使用.live()现在所有的jQuery工作