jquery content div与cookie一起消失

时间:2011-10-18 07:59:03

标签: jquery html css xhtml

我想让我的问候留言div内容块消失,Cookie会记住它,并且不再为同一个用户出现。

网站:http://bhfile.com

内容:带红色关闭按钮的第一个块

代码很简单:

<script type="text/javascript">
$(document).ready(function(){

    $(".pane .delete").click(function(){
        $(this).parents(".pane").animate({ opacity: 'hide' }, "slow");
    });

});
</script>

1 个答案:

答案 0 :(得分:0)

了解如何在Javascript中处理Cookie:js cookies