My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
jquerysimpleslider  
jquery simple slider documentation
Updated Feb 4, 2010 by giovamba...@gmail.com

Introduction

jQuery Simple Slider. This Plugin add a feature slide un UL/LI list with an image inside, in very simple mode. HTML Tagging required is:

<ul>
 <li title="Title 1"><img title="Subtitle 1" src="image1.jpg" /></li>
 <li title="Title 2"><img title="Subtitle 2" src="image2.jpg" /></li>
 <li>...</li>
</ul>

From release 1.1.0 you can set timeout params for each single slide. Thanks to Santino Bivacqua to suggest:

<ul>
 <li rel="simpleSlider{timeout: 4000}" title="Title 1"><img title="Subtitle 1" src="image1.jpg" /></li>
 <li rel="simpleSlider{timeout: 1000}" title="Title 2"><img title="Subtitle 2" src="image2.jpg" /></li>
 <li>...</li>
</ul>

LI title and IMG title are used for show a caption on bottom of slide.

Usage

You can download source Javascript file from this repository:

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.3")</script>
<!-- load latest version of jquery footer caption -->
<script type="text/javascript" src="http://undolibrary.googlecode.com/svn/trunk/jquery/jquery.simpleslider/jquery.simpleslider.js"></script>

When the DOM page is loaded, you can call footerCaption() method.

<script type="text/javascript">
google.setOnLoadCallback( 
    function() {
         $('ul#myslider').simpleSlider();
    }
);
</script>

Options

You can set some options like object param in the simpleSlider() method.

 * @param 	alpha	       Caption opacity (default '0.7'),
 * @param 	bgColor	       Caption background color (default '#000')
 * @param	bgSpeed	       Background image fade speed ( 'slow', 'normal', 'fast' or number of milliseconds) default 'slow'
 * @param	captionSpeed   Caption slideUp/slideDown speed ( 'slow', 'normal', 'fast' or number of milliseconds) default 'slow'
 * @param	height         Caption height (default '50px')
 * @param 	titleStyle     CSS Object for title ( default { color: '#fff', fontSize: '14px', fontFamily: 'Arial', margin: '0 10px 0 10px', textAlign: 'left' } )
 * @param 	subtitleStyle  CSS Object for subtitle (default { color: '#fff', fontSize: '10px', fontFamily: 'Verdana', margin: '0 10px 0 10px', textAlign: 'left' } )
 * @param	timeOut        Milliseconds interval between slide ( default 4000 )

Sample

$('ul#myslide').simpleSlider( {alpha: '0.5', titleStyle: { fontSize: '18px' } } );
Comment by sarafudh...@gmail.com, Feb 1, 2009

Brilliant tool. But how I can get rid of the animation of the text box? I want this to appear inline without text sliding.

Comment by terenzey...@gmail.com, Nov 6, 2009

couldn't get this working in IE

Comment by fedego...@une.net.co, Feb 15, 2011

i don't know nothing about javascript, but i suppose simpleslider will have a example that doesn't involve some buttons and function calls, would prefer a simple html example or at least some explanation on where to put the code.

i try this: <html> <head> <script type="text/javascript" src="jquery.simpleslider.js"></script> <script type="text/javascript"> $('ul#my-slider').simpleSlider( {alpha: '0.5', titleStyle: { fontSize: '18px' } } ); </script> </head> <body> <div id="demo">

<ul id="my-slider">
<li rel="simpleSlider{timeOut: 1000}" title="Elemento 1"><img title="Caption 1" src="http://www.undolog.com/wp-content/uploads/2008/02/image2.png" /></li> <li title="Elemento 2"><img title="Caption 2" src="http://www.undolog.com/wp-content/uploads/2008/02/image3.png" /></li> <li title="Elemento 3"><img title="Caption 3" src="http://www.undolog.com/wp-content/uploads/2008/02/image4.png" /></li> <li rel="simpleSlider{timeOut: 8000}" title="Elemento 4"><img title="Caption 4" src="http://www.undolog.com/wp-content/uploads/2008/02/image5.png" /></li>
</ul>
</div> </body> </html>

what is wrong?

sorry, i repeat knows nothing about javascript that's why i'm looking for jquery simple slider

Thanks!

Comment by fedego...@une.net.co, Feb 15, 2011

Now i figure how:

<head> <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="js/jquery.simpleslider.js"></script> <script type="text/javascript"> $(document).ready(

function (){
$('ul#demo-slider').simpleSlider( {alpha: '0.5', titleStyle: { fontSize: '18px' } } );
}
) </script> </head>


Sign in to add a comment
Powered by Google Project Hosting