显示隐藏层 jquery

/*

jQuery - External Links
Created by Andrea Cima Serniotti - http://www.madeincima.eu

*/


$(document).ready(function () {

// ---- FAQs ---------------------------------------------------------------------------------------------------------------

$('.faqs dd').hide(); // Hide all DDs inside .faqs
$('.faqs dt').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')}).click(function(){ // Add class "hover" on dt when hover
$(this).next().slideToggle('normal'); // Toggle dd when the respective dt is clicked
});

});
posted @ 2011-11-02 14:25  Frida-  阅读(210)  评论(0编辑  收藏  举报