我非常感謝任何幫助,使其工作。我已經嘗試了幾個這些JQuery滑塊教程,但我想我必須保持缺少一些至關重要的東西?如何讓我的J查詢滑塊工作?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ssss</title>
<meta name="generator" content="BBEdit 10.5" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="responsiveslides.min.js"></script>
<script>
$(function() {
$(".responsiveslides").responsiveSlides();
});
</script>
<script>
$(".responsiveslides").responsiveSlides({
auto: true, // Boolean: Animate automatically, true or false
speed: 50, // Integer: Speed of the transition, in milliseconds
timeout: 4000, // Integer: Time between slide transitions, in milliseconds
pager: true, // Boolean: Show pager, true or false
nav: true, // Boolean: Show navigation, true or false
random: true, // Boolean: Randomize the order of the slides, true or false
pause: true, // Boolean: Pause on hover, true or false
pauseControls: true, // Boolean: Pause when hovering controls, true or false
prevText: "Previous", // String: Text for the "previous" button
nextText: "Next", // String: Text for the "next" button
maxwidth: "", // Integer: Max-width of the slideshow, in pixels
navContainer: "default", // Selector: Where controls should be appended to, default is after the 'ul'
manualControls: "", // Selector: Declare custom pager navigation
namespace: "rslides", // String: Change the default namespace used
before: function(){}, // Function: Before callback
after: function(){} // Function: After callback
});
</script>
<style>
.responsiveslides {
position: relative;
list-style: none;
overflow: hidden;
width: 100%;
padding: 0;
margin: 0;
}
.responsiveslides li {
-webkit-backface-visibility: hidden;
position: absolute;
display: none;
width: 100%;
left: 0;
top: 0;
}
.responsiveslides li:first-child {
position: relative;
display: block;
float: left;
}
.responsiveslides img {
display: block;
height: 60%;
float: left;
width: 69%;
border: 0;
}
</style>
</head>
<body>
<ul class="responsiveslides">
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%201.jpg" alt="101"/> </li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%202.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%203.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%204.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%205.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%206.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%207.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%208.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%209.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%2010.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%2011.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%2012.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%2013.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%2014.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%2015.jpg" alt="101"/></li>
<li><img src="/Users/mitchellheritagehaldenby/Desktop/outcast%20website/images/image%2016.jpg" alt="101"/></li>
</ul>
</body>
</html>
您是否確實下載了插件並將其放在服務器上的同一文件夾中作爲此頁?所有圖像的url是否正確? –
你爲什麼初始化'responsiveSlides'兩次? – Charlie
你好,謝謝你的答覆..我已經將滑塊文件添加到我的主文件夾中的js文件夾中,其中我的html準系統被保留。所有圖像的大小和功能完全相同,因爲我已經嘗試過使用它們無響應的舊查詢滑塊,它的工作原理。但不是我想要的滑塊。我下載的滑塊的鏈接是https://github.com/viljamis/ResponsiveSlides.js – user3192167