我正在尝试在基于cs-cart的网站上安装Nivo Slider。我已将头文件代码添加到index.tpl并将脚本添加到script.tpl文件中,但是当页面加载时,滑块根本不会出现。在firebug中,图像显示在HTML中,但它们显示为灰色且不显示。我不确定脚本是否正常工作或正在发生什么。以下是该页面的链接:http://biohairregrowth.com/index.php。我知道这个网站是一团糟。太糟糕了,太荒谬了。我正在努力为那个拒绝做任何事情的疯狂老板做这件事。 :/任何帮助将不胜感激!
答案 0 :(得分:0)
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()
函数。
它也无法加载图像。
检查您的文件和路径。