一个工作流OA

源代码在线查看: jquery.idtabs.2.0.js

软件大小: 1386 K
上传用户: yxm_325
关键词:
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* idTabs ~ Sean Catchpole - Version 2.0 - MIT/GPL */
				(function(){var dep={"jQuery":"http://code.jquery.com/jquery-latest.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;i				$.idTabs=function(tabs,options){var meta=($.metadata)?$(tabs).metadata():{};var s=$.extend({},$.idTabs.settings,meta,options);if(s.selected.charAt(0)=='.')s.selected=s.selected.substr(1);if(s.event.charAt(0)=='!')s.event=s.event.substr(1);if(s.start==null)s.start=-1;var showId=function(){if($(this).is('.'+s.selected))return s.change;var id="#"+this.href.split('#')[1];var aList=[];var idList=[];$("a",tabs).each(function(){if(this.href.match(/#/)){aList.push(this);idList.push("#"+this.href.split('#')[1]);}});if(s.click&&!s.click.apply(this,[id,idList,tabs,s]))return s.change;for(i in aList)$(aList[i]).removeClass(s.selected);for(i in idList)$(idList[i]).hide();$(this).addClass(s.selected);$(id).show();return s.change;};var list=$("a[href*='#']",tabs).unbind(s.event,showId).bind(s.event,showId);var test=false;if(typeof s.start=="number"&&(test=list.eq(s.start)).length);else if(typeof s.start=="string"&&(test=list.filter("[href*='#"+s.start+"']")).length);else if((test=list.filter(s.selected)).length);if(test)test.removeClass(s.selected.substr(1)).trigger(s.event);return s;};$.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};$.idTabs.version="2.0";$(function(){$(".idTabs").idTabs();});})(jQuery);};init();return;var check=function(o,s){s=s.split('.');while(o&&s.length)o=o[s.shift()];return o;};var head=document.getElementsByTagName("head")[0];var add=function(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;head.appendChild(s);};var ok=true;for(d in dep){if(check(this,d))continue;ok=false;add(dep[d]);}if(ok)return init();var s=document.getElementsByTagName('script');add(s[s.length-1].src);})();
							

相关资源