javascript - Jquery tabs disable -
i have code in jquery :
(function(a) { a.fn.extend({tabify: function(e) { function c(b) { hash = a(b).find("a").attr("href"); return hash = hash.substring(0, hash.length - 4) } function f(b) { a(b).addclass("active"); a(c(b)).show(); a(b).siblings("li").each(function() { a(this).removeclass("active"); a(c(this)).hide() }) } return this.each(function() { function b() { location.hash && a(d).find("a[href=" + location.hash + "]").length > 0 && f(a(d).find("a[href=" + location.hash + "]").parent()) } var d = this, g = {ul: a(d)}; a(this).find("li a").each(function() { a(this).attr("href", a(this).attr("href") + "-tab") }); location.hash && b(); setinterval(b, 100); a(this).find("li").each(function() { a(this).hasclass("active") ? a(c(this)).show() : a(c(this)).hide() }); e && e(g) }) }}) })(jquery);
and html , script of tabs
$("#menu").tabify({ disabled: true });<ul id="menu"> <li class="active"><a href="#jquery">jquery</a></li> <li><a href="#prototype">prototype</a></li> <li><a href="#ext">ext</a></li> </ul> <div id="jquery"> jquery cross-browser… </div> <div id="prototype"> prototype javascript… </div> <div id="ext"> ext (x-t) javascript… </div>
and want add tabs have disable in plugins.could please show me correct way it?
Comments
Post a Comment