【问题标题】:Nivo Slider not working with cs-cart websiteNivo Slider 不适用于 cs-cart 网站
【发布时间】:2013-07-19 19:37:22
【问题描述】:
我正在尝试在基于 cs-cart 的网站上安装 Nivo Slider。我已将标头代码添加到 index.tpl 并将脚本添加到 script.tpl 文件,但是当页面加载时,滑块根本不会出现。在萤火虫中,图像显示在 HTML 中,但它们是灰色的并且不会出现。我不确定脚本是否不起作用或发生了什么。这是该页面的链接:http://biohairregrowth.com/index.php。我知道这个网站一团糟。这太糟糕了,太荒谬了。我正试图为我那拒绝做任何正确事情的疯狂老板做这件事。 :/ 任何帮助将不胜感激!
【问题讨论】:
标签:
jquery
nivo-slider
cs-cart
【解决方案1】:
Failed to load resource http://biohairregrowth/lib/js/nivo-slider/nivo-slider.css
Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'runCart' index.php:110
Uncaught TypeError: Cannot read property 'version' of undefined index.php:467
Failed to load resource http://biohairregrowth/lib/js/nivo-slider/jquery.nivo.slider.pack.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://biohairregrowth.com/skins/jewelry/customer/images/loading.gif
Failed to load resource http://biohairregrowth/images/slider-test1.jpg
Failed to load resource http://biohairregrowth/images/slider-test2.jpg
Failed to load resource http://biohairregrowth/images/slider-test3.jpg
Uncaught TypeError: Object [object Object] has no method 'nivoSlider'
这是浏览器控制台的显示。
首先,浏览器无法加载 Nivo 的 CSS。检查路径。
Nivo 的 *.js 文件也是如此。后果:不能使用nivoSlider()函数。
它也无法加载图像。
检查您的文件和路径。