diapo 滑块不适用于 jquery 大于 1.7
diapo slider doesn't work with jquery larger than 1.7
我使用 Diapo Slider,它适用于 jquery 1.7 及更低版本。但要使用 bootstrap (v3.3.6) 我需要 jquery 1.11 或更高版本。
我该如何解决这个冲突?
在wordpress forum上你可以看到其他人也有这个问题。
同样在 Diapo website 上,您可以看到不再支持 Diapo 幻灯片放映。
而不是 Diapo - 建议使用 Camera slideshow,一个具有自适应布局的新免费幻灯片。
我找到了使用 CameraSlider 的解决方案(至少对我而言)
在 this forum 中给出此解决方案:
To use Camera with jQuery 1.10.2 you need to do this:
1. Replace "live.(" with "on.(" (There are 4)
2. And replace:
if(opts.loader=='pie' && $.browser.msie && $.browser.version < 9){
loader = 'bar'; } else { loader = opts.loader; }
with loader = opts.loader;
Deleting this lines, the application can't check if you're browsing
with an old browser. Because this, in line 36, I reccomend to put
loader variable in 'bar' because if you put 'pie' some old browsers
won't display the slideshow.
我在 jquery 1.11.3 中测试,此解决方案有效。
我使用 Diapo Slider,它适用于 jquery 1.7 及更低版本。但要使用 bootstrap (v3.3.6) 我需要 jquery 1.11 或更高版本。
我该如何解决这个冲突?
在wordpress forum上你可以看到其他人也有这个问题。
同样在 Diapo website 上,您可以看到不再支持 Diapo 幻灯片放映。
而不是 Diapo - 建议使用 Camera slideshow,一个具有自适应布局的新免费幻灯片。
我找到了使用 CameraSlider 的解决方案(至少对我而言)
在 this forum 中给出此解决方案:
To use Camera with jQuery 1.10.2 you need to do this: 1. Replace "live.(" with "on.(" (There are 4) 2. And replace:
if(opts.loader=='pie' && $.browser.msie && $.browser.version < 9){ loader = 'bar'; } else { loader = opts.loader; }
with loader = opts.loader;
Deleting this lines, the application can't check if you're browsing with an old browser. Because this, in line 36, I reccomend to put loader variable in 'bar' because if you put 'pie' some old browsers won't display the slideshow.
我在 jquery 1.11.3 中测试,此解决方案有效。