<!DOCTYPE html>
< html lang = "en" class = "no-js" >
< head >
< meta charset = "utf-8" / >
< title > ResponsiveSlides.js · Responsive jQuery slideshow< / title >
< meta name = "viewport" content = "width=device-width,initial-scale=1" / >
< link rel = "stylesheet" href = "../responsiveslides.css" / >
< link rel = "stylesheet" href = "demo.css" / >
< script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" > < / script >
< script src = "../responsiveslides.min.js" > < / script >
< script >
$(function () {
// If you aren't using Modernizr you might want to add no-js class
// to html and use that to support cases when JavaScript isn't available
$("html").removeClass("no-js");
// Slideshow 1
$(".rslides1").responsiveSlides({
maxwidth: 800,
speed: 800
});
// Slideshow 2
$(".rslides2").responsiveSlides({
auto: false,
pager: true,
speed: 300,
maxwidth: 540
});
// Slideshow 3
$(".rslides3").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 > ");
}
});
});
< / script >
< / head >
< body >
< div id = "wrapper" >
< h1 > ResponsiveSlides.js< / h1 >
< h2 > Simple & lightweight responsive slideshow plugin (in 1kb)< / h2 >
<!-- Slideshow 1 -->
< ul class = "rslides rslides1" >
< 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 class = "rslides rslides2" >
< 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 class = "rslides rslides3" >
< 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 >
< 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 >
< / div >
< / body >
< / html >