Error with bgStretcher - jQuery conflict?
I'm trying to implement the bgStretcher jQuery plugin, and seem to get some conflicts. I'm still relatively new to jQuery, and conflicts still puzzle me.
My current site is here - http://65.60.53.10/~purerun/
The bgStretcher is giving the following error - Uncaught TypeError: Cannot call method 'split' of undefined - but it's within the plugin code.
My current implementation is as follows:
jQuery(document).ready(function($){
// other code
jQuery('body').bgStretcher({images: ['http://65.60.53.10/~purerun/wp开发者_开发技巧-content/gallery/backgrounds/26.jpg','http://65.60.53.10/~purerun/wp-content/gallery/backgrounds/img_4793.jpg'], nextSlideDelay: '10000'});
}
Any help would be appreciated....
The nextSlideDelay value you should be a number not a string; try removing the quotes around it like this:
jQuery(document).ready(function($){
// other code
jQuery('body').bgStretcher({images: ['http://65.60.53.10/~purerun/wp-content/gallery/backgrounds/26.jpg','http://65.60.53.10/~purerun/wp-content/gallery/backgrounds/img_4793.jpg'], nextSlideDelay: 10000});
}
I hope this helps!
精彩评论