window.onload = function(){ $(function(){ banner(); // 轮播调用 jquery(".slidetxtbox").slide(); // 选项卡调用 topnews(); news(); }); jquery("#nav").slide({ // 下拉菜单 type:"menu",// 效果类型,针对菜单/导航而引入的参数(默认slide) titcell:".nli", //鼠标触发对象 targetcell:".sub", //titcell里面包含的要显示/消失的对象 effect:"slidedown", //targetcell下拉效果 delaytime:300 , //效果时间 triggertime:0, //鼠标延迟触发时间(默认150) returndefault:true //鼠标移走后返回默认状态,例如默认频道是“预告片”,鼠标移走后会返回“预告片”(默认false) }); function banner() { $(".banner .prev,.banner .next").hover(function(){ $(this).stop(true,false).fadeto("show",1); },function(){ $(this).stop(true,false).fadeto("show",1); }); $(".banner .banner-box").slide({ titcell:".hd ul", maincell:".bd ul", effect:"fold", intertime:3000, delaytime:500, autoplay:true, autopage:true, trigger:"mouseover" }); }; function topnews() { jquery(".picscroll-left").slide({titcell:".hd ul",maincell:".bd ul",autopage:true,effect:"toploop",autoplay:true,vis:1,trigger:"click"}); }; function news() { jquery(".picscroll-left1").slide({titcell:".hd ul",maincell:".bd ul",autopage:true,effect:"leftloop",autoplay:true,vis:3,trigger:"click"}); }; $(".lanren ul li").hover(function(){ $(this).find(".txt").stop().animate({height:"140px"},400); $(this).find(".txt h3").stop().animate({paddingtop:"0px"},400); },function(){ $(this).find(".txt").stop().animate({height:"0"},400); $(this).find(".txt h3").stop().animate({paddingtop:"0px"},400); }) }