Special effects in jQuery don't work, caught error in source
http://content.screencast.com/users/DeviousDan/folders/Jing/media/3ff6788b-8cf1-4914-a92b-6953a3841092/2011-01-17_0822.png
That shows the error I'm getting, I get it no matter what jquery javascript file I'm using, just depends on the line, which happens to be:
this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);
The code that's getting the error:
$("#mainWrapper").show("bounce", { direction:"down", times:"3" }, 300);
Seems to happen with all .effect, however .slide and .fade works fine...
I don't get the error if I refer to it as mai开发者_JAVA技巧nWrapper, rather than #mainWrapper, however the effect still doesn't occur.
Unsure of why it's happening, any ideas? Let me know if you need more information.
Did you remember to load the jQuery UI library?
The "bounce" effect is a part of the jQueryUI lib, have a look here for reference. JSFiddle demo here.
Please try to remove quotes in time property. It accepts integer value not string.
time:3
will solve problem I guess.
精彩评论