JQuery显示隐藏层

/**
 * @author sunfish
 
*/

$(document).ready(
function(){
    $(a).click(
function(e){
        
if($("#sunfishlu").css("display")=="none")
        
{
            $(
"#sunfishlu").show("slow");
            
//$("#sunfishlu").css("display","block");
        }

        
else
        
{
            $(
"#sunfishlu").hide("slow");
            
//$("#sunfishlu").css("display","none");
        }

    }
);
}
);
posted @ 2008-10-10 11:28  sunfishlu  阅读(5979)  评论(4编辑  收藏  举报