You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.7 KiB

13 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
13 years ago
<title>ResponsiveSlides.js &middot; Responsive jQuery slideshow</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
13 years ago
<link rel="stylesheet" href="../responsiveslides.css" />
<link rel="stylesheet" href="demo.css" />
13 years ago
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="../responsiveslides.min.js"></script>
13 years ago
<script>
$(function () {
// Slideshow 1
$("#slides1").responsiveSlides({
maxwidth: 800,
speed: 800
});
// Slideshow 2
$("#slides2").responsiveSlides({
auto: false,
pager: true,
speed: 300,
maxwidth: 540
});
13 years ago
// Slideshow 3
$("#slides3").responsiveSlides({
auto: false,
pager: false,
nav: true,
speed: 500,
namespace: "callbacks"
}).bind({
// Before callback
"callbacks-before": function () {
$('.events').append("<li>before event fired.</li>");
},
// After callback
"callbacks-after": function () {
$('.events').append("<li>after event fired.</li>");
}
});
13 years ago
});
</script>
</head>
<body>
<div id="wrapper">
13 years ago
<h1>ResponsiveSlides.js</h1>
<h2>Simple &amp; lightweight responsive slideshow plugin (in 1kb)</h2>
13 years ago
<!-- Slideshow 1 -->
<ul id="slides1">
<li><img src="1.jpg" alt="" /></li>
<li><img src="2.jpg" alt="" /></li>
<li><img src="3.jpg" alt="" /></li>
</ul>
<!-- Slideshow 2 -->
<ul id="slides2">
<li><a href="#"><img src="1.jpg" alt="" /></a></li>
<li><a href="#"><img src="2.jpg" alt="" /></a></li>
<li><a href="#"><img src="3.jpg" alt="" /></a></li>
</ul>
<!-- Slideshow 2 -->
<div class="callbacks_container">
<ul id="slides3">
<li>
<img src="1.jpg" alt="" />
<p class="caption">This is a caption</p>
</li>
<li>
<img src="2.jpg" alt="" />
<p class="caption">This is another caption</p>
</li>
<li>
<img src="3.jpg" alt="" />
<p class="caption">The third caption</p>
</li>
</ul>
</div>
<!-- This is here just to demonstrate the callbacks -->
<ul class="events">
<li><h3>Example 3 callback events</h3></li>
</ul>
<a href="http://responsiveslides.com/" id="download">See the documentation</a>
13 years ago
<p class="footer">ResponsiveSlides.js is created by <a href="http://viljamis.com">@viljamis</a>. It's released under the MIT license. If you have any questions or feedback you can use the <a href="https://github.com/viljami/ResponsiveSlides.js">GitHub project page</a>.</p>
13 years ago
</div>
</body>
</html>