This commit is contained in:
ChuXun
2025-10-11 18:15:20 +08:00
parent 98c6e4b11a
commit cf8f4c5c3a
283 changed files with 105716 additions and 3 deletions

View File

@@ -0,0 +1,46 @@
// JavaScript Document
(function($){
$.fn.tabs=function(opts){
var options=$.extend({},$.fn.tabs.defaults,opts);
var $that=$(this);
$that.find(options.clickPanel).find(options.clickTag).bind(options.switchMode,function(){
$(this).siblings().removeClass(options.addStyle);
$(this).addClass(options.addStyle);
$that.find(options.showContent).hide();
$that.find(options.showContent).eq($(this).index()).show();
return false;
});
};
})(jQuery);
$.fn.tabs.defaults={
switchMode:"mouseover",
clickPanel:".lists",
clickTag:"li",
addStyle:"current01",
showContent:".thiscontent"
};