i have code :
<script type="text/javascript" src="../javascripts/jquery-1.5.2.min.js"></script> <script type="text/javascript" src="../javascripts/jquery.tools.min.js"></script> <script type="text/javascript"> $(function() { // initialize scrollable $(".articles").scrollable({ vertical: true }); }); </script>
and getting error in firebug
function (a) {a.tools = a.tools || {version: "@version"}, a.tools.tabs = {conf: {tabs: "a", current: "current", onbeforeclick: null, onclick: null, effect: "default", initialindex: 0, event: "click", rotate: !1, history: !1}, addeffect: function (a, c) {b[a] = c;}};var b = {default: function (a, b) {this.getpanes().hide().eq(a).show(), b.call();}, fade: function (a, b) {var c = this.getconf(), d = c.fadeoutspeed, e = this.getpanes();d ? e.fadeout(d) : e.hide(), e.eq(a).fadein(c.fadeinspeed, b);}, slide: function (a, b) {this.getpanes().slideup(200), this.getpanes().eq(a).slidedown(400, b);}, ajax: function (a, b) {this.getpanes().eq(0).load(this.gettabs().eq(a).attr("href"), b);}}, c;a.tools.tabs.addeffect("horizontal", function (b, d) {c || (c = this.getpanes().eq(0).width()), this.getcurrentpane().animate({width: 0}, function () {a(this).hide();}), this.getpanes().eq(b).animate({width: c}, function () {a(this).show(), d.call();});}); function d(c, d, e) {var f = this, g = c.add(this), h = c.find(e.tabs), = d.jquery ? d : c.children(d), j;h.length || (h = c.children()), i.length || (i = c.parent().find(d)), i.length || (i = a(d)), a.extend(this, {click: function (c, d) {var = h.eq(c);typeof c == "string" && c.replace("#", "") && (i = h.filter("[href*=" + c.replace("#", "") + "]"), c = math.max(h.index(i), 0));if (e.rotate) {var k = h.length - 1;if (c < 0) {return f.click(k, d);}if (c > k) {return f.click(0, d);}}if (!i.length) {if (j >= 0) {return f;}c = e.initialindex, = h.eq(c);}if (c === j) {return f;}d = d || a.event(), d.type = "onbeforeclick", g.trigger(d, [c]);if (!d.isdefaultprevented()) {b[e.effect].call(f, c, function () {d.type = "onclick", g.trigger(d, [c]);}), j = c, h.removeclass(e.current), i.addclass(e.current);return f;}}, getconf: function () {return e;}, gettabs: function () {return h;}, getpanes: function () {return i;}, getcurrentpane: function () {return i.eq(j);}, getcurrenttab: function () {return h.eq(j);}, getindex: function () {return j;}, next: function () {return f.click(j + 1);}, prev: function () {return f.click(j - 1);}, destroy: function () {h.unbind(e.event).removeclass(e.current), i.find("a[href^=#]").unbind("click.t");return f;}}), a.each("onbeforeclick,onclick".split(","), function (b, c) {a.isfunction(e[c]) && a(f).bind(c, e[c]), f[c] = function (b) {b && a(f).bind(c, b);return f;};}), e.history && a.fn.history && (a.tools.history.init(h), e.event = "history"), h.each(function (b) {a(this).bind(e.event, function (a) {f.click(b, a);return a.preventdefault();});}), i.find("a[href^=#]").bind("click.t", function (b) {f.click(a(this).attr("href"), b);}), location.hash && e.tabs == "a" && c.find("[href=" + location.hash + "]").length ? f.click(location.hash) : (e.initialindex === 0 || e.initialindex > 0) && f.click(e.initialindex);} a.fn.tabs = function (b, c) {var e = this.data("tabs");e && (e.destroy(), this.removedata("tabs")), a.isfunction(c) && (c = {onbeforeclick: c}), c = a.extend({}, a.tools.tabs.conf, c), this.each(function () {e = new d(a(this), b, c), a(this).data("tabs", e);});return c.api ? e : this;};}(jquery) not function [break on error] (function(a){a.tools=a.tools||{version...handle.call(this,b,b.delta)}})(jquery) jquery....min.js (line 29)
but when include website, every thing working ok
why getting error??
what happens if replace js src with
http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js
or change jquery to:
$(function() { // initialize scrollable $(".articles").scrollable({ vertical: true, mousewheel: true }); });
Comments
Post a Comment