$(function(){ $("a").focus(function(){this.blur();}); jquery(".homeban").slide({maincell:".banlist ul", effect:"fold",autoplay:true, autopage:true, trigger:"click",intertime:6500,startfun:function(i,c){ if(i=="0"||i=="1"||i=="2"){ $(".homeban .banlist .con").removeclass("con2"); $(".homeban .banlist .con").find("p").attr("style",""); $(".homeban .banlist li").eq(i).find(".con").addclass("con2"); $(".homeban .banlist .con2").find("p").stop().animate({bottom:51,opacity:1},200); } },endfun:function(i,c){ }}); //首页banner jquery(".photonews").slide({ titcell:".num li", maincell:".pic",effect:"fold", autoplay:true,trigger:"click",startfun:function(i){jquery(".photonews .txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":-36});}}); //首页图片新闻 jquery(".video").slide({ titcell:".hd ul", maincell:".bd ul", effect:"left",autoplay:true, autopage:true, trigger:"click" }); //首页视频 jquery(".homezt").slide({ maincell:"ul",autoplay:false,effect:"leftloop", vis:3, scroll:1, autopage:true, pnloop:true }); //首页图片专题 //jquery(".homemember").slide({ maincell:"ul",autoplay:true,effect:"topmarquee",intertime:50,vis:3}); //首页成员机场 jquery(".homecolumn .scroll").slide({ maincell:"ul",autoplay:true,effect:"leftmarquee",intertime:50,vis:5}); //首页旅游图片 }) // nav line $(function() { /* add magic line markup via javascript, because it ain't gonna work without */ $("#navtop").append("
"); /* cache it */ var $magicline = $("#magic-line"); $magicline .width($(".current_page_item").width()) .css("left", $(".current_page_item a").position().left) .data("origleft", $magicline.position().left) .data("origwidth", $magicline.width()); $("#navtop li").find("a").hover(function() { $el = $(this); leftpos = $el.position().left; newwidth = $el.parent().width(); $magicline.stop().animate({ left: leftpos, width: newwidth }); }, function() { $magicline.stop().animate({ left: $magicline.data("origleft"), width: $magicline.data("origwidth") }); }); });//end $(".joblist .item").each(function(){ var btn = $(this).find(".jobtitle"); btn.click(function(){ var statis = $(this).parents(".item").find(".txtcont").css("display"); if(statis == "none"){ $(this).parents(".item").siblings().removeclass("current"); $(this).parents(".item").siblings().find(".txtcont").slideup(500); $(this).parents(".item").addclass("current"); $(this).parents(".item").find(".txtcont").slidedown(500); } else{ $(this).parents(".item").find(".txtcont").slideup(500); $(this).parents(".item").removeclass("current"); } }); });