简体   繁体   English

LoopedSlider突然停止工作

[英]LoopedSlider suddenly stopped working

I have been styling a predefined site, and after adding some box-shadows last night my loopedSlider has stopped working. 我一直在设计一个预定义的网站,并在昨晚添加了一些盒子阴影后,我的loopedSlider已停止工作。

I have installed a clean version of the template I am using alongside. 我已经安装了正在使用的模板的干净版本。 The page in question is 有问题的页面是

scorpionhosting.net scorpionhosting.net

and the clean template is: 干净的模板是:

scorpionhosting.net/cleanhostpay scorpionhosting.net/cleanhostpay

I've been back through the CSS, checked the html and w3c validated both to double check it wasn't something obvious (closing tags etc). 我已经通过CSS返回,检查了html和w3c并对其进行了验证,以再次检查它是否不明显(关闭标签等)。 I notice that the clean template is using loopedslider.min.js while my page is not. 我注意到干净的模板正在使用loopedslider.min.js,而我的页面却没有。 I don't understand why this is, I'm afraid I don't speak javascript very well yet! 我不明白为什么会这样,恐怕我的Java语言还不太好!

The clean version has jQuery 1.3.2 loading: 干净的版本具有jQuery 1.3.2加载:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

Your new version has no jQuery. 您的新版本没有jQuery。

The latest version of jQuery is 1.9.1, by the way, so I'd update for a new site. 顺便说一下,jQuery的最新版本是1.9.1,所以我将更新一个新站点。 You may have trouble with your slider if you go that far, though, since 1.9 removed some deprecated methods. 但是,如果走得那么远,您可能会遇到滑块问题,因为1.9删除了一些过时的方法。 I'd try 1.9.1, and if it doesn't work, try 1.8.3. 我会尝试1.9.1,如果不起作用,请尝试1.8.3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM