Animated anchor on jScrollpane

$(‘.scrollpane’).jScrollPane({
animateScroll: true
});
var scrollpane_api = $(‘.scrollpane’).data(‘jsp’);

$(‘.scrollpane a[href^=#]’).click(function(){
var scroll_top = $(‘a[name=”‘ + $(this).attr(‘href’).substring(1) + ‘”]’).position().top;
scrollpane_api.scrollTo(0, scroll_top);
return false;
});

.delay() is not a function

Problem
.delay() is not a function

Solution
delay() is a new function added in jQuery 1.4. If you are using jQuery 1.3, you will get the above error. Solution is to use .animate() instead of .delay().

Example
Convert
$e.delay(1000).fadeOut();
Into
$e.animate({top: 0}, 1000).fadeOut();

Useful Plugins

Responsive Slideshow
FlexSlider 2

Slideshow
jQuery Cycle

Lightbox
ColorBox
Fancybox

Form Validation
Validation

Ajax Form
jQuery Form

Scroll To
jQuery ScrollTo

Full Screen Background Slideshow / Image
Supersized

Full Screen Background Image
Backstretch

Full Screen Background Video
BigVideo.js

Image Preload
jQuery Image Preload Plugin

Mobile Detection
Detect Mobile Browsers

Excerpt
jQuery Excerpt

Floating Object
jqFloat

Browser Rejection
jReject

Transition
jQuery Transit

Image Cropping
Jcrop

Image Preview
imgPreview

Tooltip
qTip
Colortip

Placeholder
jQuery Placeholder

Dynamic Grid Layout
jQuery Masonry
Isotope

Hover Delay
hoverIntent

Fix To
fixto

Slim Scroll
slimscroll

Page Scroll
fullPage.js

Shorten
jQuery shorten