This is a very simple and very easy to use slideshow plugin for jquery.
It will automatically create a slideshow with navigation out of your image list.
The plugin also provides different callbacks and options that let you customize
the way the slideShow react on mouse rollovers, clicks or slideChanges.
If you downloaded this file with the sources you should visit the
plugin’s homepage.
The script is licensed under MIT License and you can use it for free!
All Images used are taken from the plugin’s author Marcel Eichner.
Some websites, that allready use this plugin. If you also created a slideshow on your website, write me an email and I’ll link to the page: love@ephigenia.de
This slideshow does nothing than change the images every 3 seconds with a soft fade. See the next examples for more features.
$(document).ready() {
$('.mySlideShow').slideShow();
}
This slideshow example shows how to set up text on every slide. The p-Tag is positioned absolute and has an higher z-index as the image slides.
Give the user the possibility to change the image with his mouse pointer by setting hoverNavigation to true. This example shows the effect. Move your mouse over the image to change it.
$('.useMouseSlideShow').slideShow({
hoverNavigation: true, // use mouse for navigation
interval: false // disable auto-slideshow
});
This example illustrates how to replace the navigation links with images and keep the
slideshow working. See the sourcecode for further info.
The better way to have custom images in your navigation is to set background images
for each navigation point by using css classes.
You easily can move the navigation to the top of the slideshow by changing the order of the ul tags.
Create a slideshow that starts from a random selected image
$('.randomSlideShow').slideShow({
start: 'random'
});
This example shows a slideshow with prev/next and a pause/play button that also changes it’s label when pressed.
var slideShow = $('.playPauseExample').slideShow({
interval: 0.7
});
// now add logic to play/pause button
$('.playPauseExample a.togglePlayback').click(function() {
if (slideShow.isPlaying()) {
$(this).html('play');
} else {
$(this).html('stop');
}
slideShow.togglePlayback();
});
This example demonstrates how to use the gotoSlide
and slideClick
callback.
The gotoSlide
callback echoes the current slide index in a div under the slideshow and
the slideClick
callback let you navigate back and forth by clicking a slide.
$('.callbackSlideShow').slideShow({
interval: 5,
slideClick: function(slideShow) {
if (slideShow.mouse.x > slideShow.options.slideSize.width / 2) {
slideShow.next();
} else {
slideShow.previous();
}
},
gotoSlide: function(slideShow, index) {
$('.callBackSlideShowLog').html('goto slide index: ' + index);
}
});