s3Slider jQuery plugin

It is very easy. First include the jQuery library then include the s3Slider javascript in the head of the page(s) where you want to use s3Slider.

jQuery can be download from jQuery`s homepage.



<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/s3Slider.js" type="text/javascript"></script>

Important: For the script to work properly there is a set of rules that must be followed.


<div id="s3slider">
<ul id="s3sliderContent">
<li class="s3sliderImage">
<img src="#" />
<span>Your text comes here</span>

+ show all of the code


If you set that main div id is s3slider as we did here, that is the name that must be prefix for all other classes and id`s for that specific gallery (slide show). For example, if you set an id for main div as your_name, the inner id must be your_nameContent and the class .your_nameImage like in example above.

The second thing is that every .your_nameImage element in it self must have span. Also, the last div with class clear must also have an class of image holder in this case .your_nameImage. if you dont put that, the last image will NOT be shown in the slide show.


#s3slider {
width: 400px; /* important to be same as image width */
height: 300px; /* important to be same as image height */
position: relative; /* important */

+ show all of the code

Then you need to initalize s3Slider and set the duration of how long will one picture be shown on the page (value is in miliseconds).


$(document).ready(function() {
timeOut: 4000

This script is licensed under Creative Commons Attribution 2.5. So you can use it in all you projects even commercial ones.


This plugin has been tested and is known to work in the following browsers:

  • Firefox 2.x (Win)
  • Firefox 3.0.3 (Win/Linux/Mac)
  • Opera 9.6 (Win/Linux)
  • Safari 3.0.3 (Win/Mac)
  • Internet Explorer 6 (Win)
  • Internet Explorer 7 (Win)
  • Google Chrome (Win)

Download: mediafire.com/?s9goio8rcjb882b

Leave a comment