2012-05-09 21 views
0

を開いていない私は、このスクリプトを作成してもらってください:jQuery .slideと.slideUp。

$("#comments .comment .links").hide(); 
$("#comments .comment").hover(
    function() { $(".links", this).stop(true).slideDown(300); }, 
    function() { $(".links", this).stop(true).slideUp(300); } 
); 

は、今私は問題を抱えています。私がコメントdivの上にマウスを置いたとき。そして、私は数回ホバリングします。その.links divはもう表示されません。 divが完全に開かれていません。

どうすれば修正できますか?

+1

ストップ '.stop(真、真)の真実を追加してみてください。 – Joonas

+0

スクリプトに関連するHTMLを投稿できますか? –

答えて

1

この

$("#comments .comment .links").hide(); 
$("#comments .comment").hover(
    function() { $(".links", this).not(":animated").slideDown(300); }, 
    function() { $(".links", this).not(":animated").slideUp(300); } 
); 

OR

$("#comments .comment .links").hide(); 
$("#comments .comment").hover(
    function() { 
        $(".links", this).stop(true, true).slideToggle(); 
       } 
); 
1

少し変更してみてください、あなたはこれを持っています。

$("#comments .comment .links").hide(); 
$("#comments .comment").hover(
    function() { $(".links", this).stop(true, true).slideDown(300); }, 
    function() { $(".links", this).stop(true, true).slideUp(300); } 
);​