jquery(function($){ /*$(".g-fashin").gfashin(); $(".gb").click(function(){ $(".wx").hide(); })*/ $(".i-tabs-item-h").each(function(){ $(this).find(".i-tabs-item").eq(0).addclass("i-tabs-item-hover"); }) $(".i-tabs-item-h .i-tabs-item").hover(function(){ $(this).siblings().removeclass("i-tabs-item-hover").end().addclass("i-tabs-item-hover"); },function(){ }) }); (jquery)(function($){ $(".aselect1").hover(function(){$(this).find(".yqlj-absolute").show();},function(){$(this).find(".yqlj-absolute").hide();}); $(".bselect1").hover(function(){$(this).find(".yqlj-absolute").show();},function(){$(this).find(".yqlj-absolute").hide();}); $(".cselect1").hover(function(){$(this).find(".yqlj-absolute").show();},function(){$(this).find(".yqlj-absolute").hide();}); $(".dselect1").hover(function(){$(this).find(".yqlj-absolute").show();},function(){$(this).find(".yqlj-absolute").hide();}); }); $('ul.col-2 li:nth-child(2n+2),ul.col-3 li:nth-child(3n+3),ul.col-4 li:nth-child(4n+4),ul.col-5 li:nth-child(5n+5),ul.col-6 li:nth-child(6n+6),ul.col-7 li:nth-child(7n+7)').css('margin-right','0'); $('ul.col-2 li:nth-child(2n+2),ul.col-3 li:nth-child(3n+3),ul.col-4 li:nth-child(4n+4),ul.col-5 li:nth-child(5n+5),ul.col-6 li:nth-child(6n+6),ul.col-7 li:nth-child(7n+7)').addclass('nomargin'); /*jquery(function($) { $(".g-fashin").gfashin(); });*/ $(document).ready(function(){ $(".main_visual").hover(function(){ $("#btn_prev,#btn_next").fadein(); },function(){ $("#btn_prev,#btn_next").fadeout() }); $dragbln = false; $(".main_image").touchslider({ flexible : true, speed : 200, autoplay: true, btn_prev : $("#btn_prev"), btn_next : $("#btn_next"), paging : $(".flicking_con a"), counter : function (e){ $(".flicking_con a").removeclass("on").eq(e.current-1).addclass("on"); } }); $(".main_image").bind("mousedown", function() { $dragbln = false; }); $(".main_image").bind("dragstart", function() { $dragbln = true; }); $(".main_image a").click(function(){ if($dragbln) { return false; } }); timer = setinterval(function(){ $("#btn_next").click(); }, 5000); $(".main_visual").hover(function(){ clearinterval(timer); },function(){ timer = setinterval(function(){ $("#btn_next").click(); },5000); }); $(".main_image").bind("touchstart",function(){ clearinterval(timer); }).bind("touchend", function(){ timer = setinterval(function(){ $("#btn_next").click(); }, 5000); }); $('ul.col-2 li:nth-child(2n+2),ul.col-3 li:nth-child(3n+3),ul.col-4 li:nth-child(4n+4),ul.col-5 li:nth-child(5n+5),ul.col-6 li:nth-child(6n+6),ul.col-7 li:nth-child(7n+7)').css('margin-right','0'); $('ul.col-2 li:nth-child(2n+2),ul.col-3 li:nth-child(3n+3),ul.col-4 li:nth-child(4n+4),ul.col-5 li:nth-child(5n+5),ul.col-6 li:nth-child(6n+6),ul.col-7 li:nth-child(7n+7)').addclass('nomargin'); }); jquery(function($){ $("#f_links_list").jcarousellite({ btnnext: "#f_right", btnprev: "#f_left", speed: 3500, visible: 4, scroll: 1, auto: true }); }); $(function(){ //单行文字向上滚动 var _wrap=$('.gysh-zdgz-module-module');//定义滚动区域 var _interval=2000;//定义滚动间隙时间 var _moving;//需要清除的动画 _wrap.hover(function(){ clearinterval(_moving);//当鼠标在滚动区域中时,停止滚动 },function(){ _moving=setinterval(function(){ var _field=_wrap.find('.gysh-zdgz-item:first');//此变量不可放置于函数起始处,li:first取值是变化的 var _h=_field.height();//取得每次滚动高度 _field.animate({margintop:-_h+'px'},600,function(){//通过取负margin值,隐藏第一行 _field.css('margintop',0).appendto(_wrap);//隐藏后,将该行的margin值置零,并插入到最后,实现无缝滚动 }) },_interval)//滚动间隔时间取决于_interval }).trigger('mouseleave');//函数载入时,模拟执行mouseleave,即自动滚动 }); /*$(function () { $(".home-bot-295").hover(function () { $(this).addclass("home-bot-295-active"); }, function () { $(this).removeclass("home-bot-295-active"); }); }); */ $(function () { $(".home-bot-295").hover(function () { $(this).addclass("home-bot-295-active"); $(".lb-293-module-more img", this).attr("src", "/portals/0/images/more-hover.jpg"); }, function () { $(this).removeclass("home-bot-295-active"); $(".lb-293-module-more img", this).attr("src", "/portals/0/images/more-link.jpg"); }).each(function () { $(".lb-293-module-more img", this).attr("src", "/portals/0/images/more-link.jpg"); }); }); //批量滚动 // javascript document ;(function($){//自定义插件开始 $.fn.extend({//扩展jq "tabcontrol":function(options){ options=$.extend({ menu:"menu", con:"con", style:"on" },options); this.each(function(i){//i获取匹配对象的索引 $(this).mouseover(function(){//添加鼠标移入事件 $("."+options.con+":not(:eq("+i+"))").hide();//隐藏其它内容块 $("."+options.con+":eq("+i+")").show();//显示当前的内容块 $("#"+options.menu+" li").removeclass(options.style); $(this).addclass(options.style); }); }); } }); //end extend })(jquery);