This is an awesome jQuery plugin like Jondesign’s Smooth Slideshow v2.1, by looking at the jd’s Smooth Slideshow, the respective author came up with this awesome s3Slider jQuery Plugin. Just we need to make use of the snippets which author has provided and we can proceed further in implementing the same, I would like to recommend all the viewers of my site to have a look and please provide your valuable feedback as well.
How to Use:
Its very simple and very easy to implement, Initially we have to include the jQuery Library. jQuery can be downloaded from jQuery’s homepage.
1 2 | <script src="js/jquery.js" type="text/javascript"></script> <script src="js/s3Slider.js" type="text/javascript"></script> |
HTML Snippet:
1 2 3 4 5 6 7 8 9 10 11 12 13 | <div id="s3slider"> <ul id="s3sliderContent"> <li class="s3sliderImage"> <img src="#" /> <span>Your text comes here</span> </li> <li class="s3sliderImage"> <img src="#" /> <span>Your text comes here</span> </li> <div class="clear s3sliderImage"></div> </ul> </div> |
CSS:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #s3slider { width: 400px; /* important to be same as image width */ height: 300px; /* important to be same as image height */ position: relative; /* important */ overflow: hidden; /* important */ } #s3sliderContent { width: 400px; /* important to be same as image width or wider */ position: absolute; /* important */ top: 0; /* important */ margin-left: 0; /* important */ } .s3sliderImage { float: left; /* important */ position: relative; /* important */ display: none; /* important */ } .s3sliderImage span { position: absolute; /* important */ left: 0; font: 10px/15px Arial, Helvetica, sans-serif; padding: 10px 13px; width: 374px; background-color: #000; filter: alpha(opacity=70); /* here you can set the opacity of box with text */ -moz-opacity: 0.7; /* here you can set the opacity of box with text */ -khtml-opacity: 0.7; /* here you can set the opacity of box with text */ opacity: 0.7; /* here you can set the opacity of box with text */ color: #fff; display: none; /* important */ top: 0; /* if you put top: 0; -> the box with text will be shown at the top of the image if you put bottom: 0; -> the box with text will be shown at the bottom of the image */ } .clear { clear: both; } |
To initalize s3Slider, here is the JS code:
1 2 3 4 5 | $(document).ready(function() { $('#s3slider').s3Slider({ timeOut: 4000 }); }); |
Browser Support:
- 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:
Full version (with examples) (size: 574kb)
Uncompressed version (size: 4.12kb)
Compressed version (size: 1.66kb)
Live Demo:
If you guys want to see the Live Demo, just go head and have a quick look at it – Live Demo
More Information:
If you would like to know more information about this cool and awesome smooth slide show, please feel free to have a look at this site – s3Slider jQuery plugin
Related Entries...
Introduction This post help beginners to learn and implement some jQuery Web Applications. Develop S ...
Most of the developers might have faced this situation where they need to add !important while using ...
Introduction: After going through this article, you can be able to develop a simple slide panel appl ...
There might be some scenarios where we need to check whether a particular DIV is visible or not and i ...
Introduction: This article will help you in developing simple Floating Slide-In Menu using jQuery. T ...
I am back again with some good snippet on "Placing a Play Icon over the image using CSS", After going ...
Below script will lets you to open Ext.Panel (that is Panel) onClick of an anchor link. Its really a ...
Introduction: Below is the simple Bookmark script, which has been implemented using jQuery, this mig ...
Introduction: Scott has released one awesome plugin for Select Box, you can customize it accordingly ...
Below snippet code helps you in getting mouse coordinates inside a div container, when user moves mou ...























One Response
[...] Smooth Slide Show s3Slider jQuery plugin | developersnippets.com – [...]