1
3
The only problem I can see is an extra comma at the end of the gallery options:
At least Firefox and Chrome ignore the trailing comma, but it's a syntax error in Internet Explorer. After I fixed that, your code worked fine for me in Chrome, Firefox, and IE.
就像评论中提到的Anurag一样,您包含了两次MooTools。它没有给我带来任何问题,但是你可以移除
|
2
1
In JQuery you can choose a new name for the JQuery function to avoid conflicts with other libraries, e.g. Prototype. Mootools might support something similar. |
3
1
Alright, it's working now. Here's what's going on: I removed the extra comma as per Matthew Crumley's suggestion (+1). Per Anurag, I checked Chrome's developer tool (I completely forgot about that - working late = bad.) It didn't show any errors. Then I redownloaded the SlimBox files and tried the demo, which didn't work. Then I noticed that SlimBox had two folders with its SlimBox JS files: js and src. js is the correct folder with the correct library, src doesn't work for whatever reason. I changed the website to use the file from the js folder and it's now working. 底线:毕竟没有脚本冲突,Slimbox只是以一种奇怪的方式分发。谢谢大家的帮助! |
4
0
当我必须在同一页面中使用jQuery的两个版本时,我遇到了同样的问题。
然后你可以用类似的方法来引用你的不同版本的jQuery:
I hope something like this will solve your issue too. |
beingalex · 全局作用域-在触发事件侦听器后访问“this” 11 年前 |
Zed · 奇数和偶数元素的事件处理程序 11 年前 |
Dimitri Vorontzov · 使用MooTools平滑淡入整个网页 11 年前 |
niux · jQuery与MooTools冲突 11 年前 |
Lennart · 使用javascript强制下载 12 年前 |