我确信我的页面幻灯片和图像滑块之间存在冲突..
这是页面幻灯片的代码:
<ul>
<li>
<a href="javascript:$.pageslide({ direction: 'right', href: '_secondary.html' })" class="first">Slide to the right, and load content from a secondary page.</a>
</li>
<li>
<a href="javascript:$.pageslide({ direction: 'left', href: '/template/_secondary.html' })" class="second">Open the page programatically.</a>
</li>
</ul>
<script>
var jq171 = jQuery.noConflict();
</script>
<script src="/template/js/jquery-1.7.1.min.js"></script>
<script src="/template/js/jquery.pageslide.js"></script>
<script>
/* Default pageslide, moves to the right */
$(".first").pageslide({ direction: "right"});
/* Slide to the left, and make it model (you'll have to call $.pageslide.close() to close) */
$(".second").pageslide({ direction: "left"});
</script>`
这是图像滑块:此代码引用了两个 jQuery 库 - v1.5.1 和 orbit-1.2.3
<div class="container" style="margin-top:20px; margin-left:10px;">
<div id="featured">
<a href=""><img src="*****" /></a>
<a href=""><img src="*****" /></a>
<a href=""><img src="*****" /></a>
<a href=""><img src="*****" /></a>
<a href=""><img src="*****" /></a>
</div>
有一分钟我让他们俩一起工作,但我不确定是什么导致了冲突。我已经尝试过不同变体的无冲突脚本。如果您需要更多信息来帮助,请告诉我。谢谢!