<script type="text/javascript">
$(function(){
$(".top").hover(function(){
$(this).addClass("bgreen");
},function(){
$(this).removeClass("bgreen");
});
$(".top").toggle(
function(){
$(this).find(".iocn").removeClass("jia").addClass("jian");
$(this).siblings(".content").show(1000);
},function(){
$(this).find(".iocn").removeClass("jian").addClass("jia");
$(this).siblings(".content").hide('slow');});
$(function(){
$(".top").hover(function(){
$(this).addClass("bgreen");
},function(){
$(this).removeClass("bgreen");
});
$(".top").toggle(
function(){
$(this).find(".iocn").removeClass("jia").addClass("jian");
$(this).siblings(".content").show(1000);
},function(){
$(this).find(".iocn").removeClass("jian").addClass("jia");
$(this).siblings(".content").hide('slow');});
}
上机5
<script type="text/javascript">
$(function(){
$("#menu a").hover(function(){
$("#menu-ul").toggle();
});
$("#tab-top ul li").click(function(){
$(".content").hide();
$(".content").eq($(this).index()).show(1800);
});
});