2011-10-15 32 views
2

我试图实现bgStretcher jQuery插件,似乎得到一些冲突。我对jQuery还比较陌生,冲突依然困扰着我。bgStretcher错误 - jQuery冲突?

我现在的网站是在这里 - http://65.60.53.10/~purerun/

的bgStretcher是给下面的错误 - 遗漏的类型错误:无法调用未定义的“分裂” - 但它的插件代码中。

我目前的执行情况如下:

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'}); 
} 

任何帮助,将不胜感激....

回答

0

的nextSlideDelay值,你应该是一个数字而不是一个字符串;尝试删除像这样的引号:

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}); 
} 

我希望这有助于!

+0

虽然这是真的,我确实修复它,错误仍然发生,并与此无关。不过谢谢! – MetalAdam

+0

@MetalAdam如果您使用图像的相对URL而不是绝对地址,错误是否会持续存在? – dSquared

+0

使用相对URL进行检查 - 不变。 – MetalAdam