"Procure ser um homem de valor, em vez de ser um homem de sucesso." Albert Einstein

Plugin jQuery para Slideshow de Imagens : s3Slider

Posted: maio 27th, 2009 | Author: Elias Rosa | Filed under: jQuery | Tags: , , , | No Comments »

O s3Slider é um plugin para jQuery muito interessante, com ele é possível criar rapidamente um slide show com efeito de transição e descrição para as fotos, note que quando você passa o mouse sobre a foto ele pausa o slider.

Veja alguns exemplos do plugin.
http://www.serie3.info/s3slider/demonstration.html

HTML HEAD


HTML

  • Your text comes here
  • Your text comes here

CSS

#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; -> a caixa com o texto ficara no topo da imagem
       if you put
       bottom: 0; -> a caixa com o texto ficara no rodape da imagem
   */
}

.clear {
   clear: both;
}

JS

$(document).ready(function() {
   $('#s3slider').s3Slider({
      timeOut: 4000
   });
});

DOWNLOAD

Versão completa (com exemplos) (size: 574kb)
Versão completa (size: 4.12kb)
Versão comprimida (size: 1.66kb)

jQuery

Script feito por

Boban Karišik,  www.serie3.info/s3slider