NivoSlider 和 Lightbox javascript 冲突
在我的作品集网站 (www.jyschan.com) 上,我尝试使用 Lightbox 脚本展示我的设计项目,因为它看起来非常专业,而且还省去了为每个项目预览重新创建冗余 html 页面的麻烦/头痛。
在 Dreamweaver 中的 Portfolio.html 文件中,标题中包含 NivoSlider 和 Lightbox javascript。每次我调整代码时,似乎只有一个脚本可以工作。目前,尽管我对所有缩略图进行了编码以使用 Lightbox 进行预览,但只有滑块可以工作。
我现在的主要问题是——NivoSlider 和 Lightbox javascript 是否相互冲突?还是我的编码有错误?
任何帮助将不胜感激...谢谢!
On my portfolio website (www.jyschan.com), I'm trying to showcase my design projects using the Lightbox script, since it looks very professional and also saves me the hassle/headache of recreating a redundant html page for each project preview.
On my portfolio.html file in Dreamweaver, I have both the NivoSlider and Lightbox javascripts included in the header. Everytime I tweak the code, only one of the scripts seems to work. Currently, only the slider works, even though I coded all the thumbnails to preview with Lightbox.
My main question for now is--do the NivoSlider and Lightbox javascripts conflict with each other? Or do I just have an error in my coding?
Any help would be appreciated...thank you!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能指定您正在使用哪种 Lightbox 实现(链接到库)吗?也许你甚至可以检查它在后台使用的 js 库。如果两个组件都使用 jquery(同一版本),则不应该有任何冲突。否则取决于实施。
Can you specify which Lightbox implementation (link to library) you are using? Maybe you can even check what js library it's using under the hood. If both components are using jquery (in the same version) there shouldn't be any conflict. Otherwise it depends on implementation.