Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\CSS\zh-CN\DefaultTheme\js\waterfall\tabswitch.js
/*! @????? Tab Switch jQuery plugin */ ;(function($){ //main ????? $.fn.tabswitch = function(fn,selector,op){ var $t = this; //???????????????????????????????????? if( typeof fn !== 'function' ){ op = selector; selector = fn; fn = $.noop; } //????????????????????????????????????? if( typeof selector !== 'string' ){ op = selector; selector = ''; } //???????????????????????xtend???????? var opts = $.extend({},$.fn.tabswitch.defaults,op); //fn ?????pt ??? opts.fn = fn; //??????????? var hasdelegate = !!selector; //?????? var $conts = $(opts.cont), //????????? $trigs = hasdelegate ? $(selector,$t) : $t, //????????className ?????? cur className fclass = opts.focus; //??????tab ?????0????????????????? _autodo ??? _settab(opts.index) if( !this.data('tabswitched') ){ //??????????????????????? if( hasdelegate ){ this.delegate(selector,opts.event,_clickdo) }else{ this.bind(opts.event,_clickdo); } this.data('tabswitched',true) } //main ???????? function _clickdo(e){ e.preventDefault(); _settab($trigs.index(this),true); } // _clickdo ?????? /* ????????????????????? ????? i - (Num) ??? b - (Bool) ??????????????????????????? true????????????????? false */ function _settab(i,b){ var $mtrigs = $trigs, $pre, prei = $trigs.index($pre), mi = -1, si = -1, ci=i; // ci ??????????????ont cont??????????? $pre = $mtrigs.filter('.'+fclass) prei = $trigs.index($pre) $mtrigs.add($conts).removeClass(fclass); //??????trigs ?? conts ???????? fclass $conts.css('display','none').eq(ci).css('display','block').add($trigs.eq(i)).addClass(fclass); //???????? if( typeof opts.fn === 'function' ){ opts.fn($trigs,$conts,ci,prei,b); } } return $t; } $.fn.tabswitch.defaults = { //?????? "cont" : ".tabswitch-cont", //?????????????? "focus" : "cur", //????????className ??????? "index" : 0, //???????????????????????0 "event" : "click" //???trigger ???????????? click }; })(jQuery);
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de