Register - Login
 

Latest s3Slider

Minimize

S3Slider and Ventrian News

Minimize
This example was built using Ventrian News and http://www.serie3.info/s3slider/demonstration.html
 
The template used is below.
 
Obviously, the CSS should really go across into a linked CSS file - but I've included it here for ease of understanding
 
Header
 
<style type='text/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; -> 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
   */
}
.s3sliderImage span a {
   color: #fff;
}
 
.clear {
   clear: both;
}
</style>
<div id="s3slider">
   <ul id="s3sliderContent">
 
 
Body
 
      <li class="s3sliderImage">
 
          [IMAGE]          <span class="left"><a href='[LINK]'><strong>[TITLE]</strong><br />[SUMMARY]</a></span>
      </li>
 
Footer
 
      <div class="clear s3sliderImage"></div>
   </ul>
</div>
 
<script type='text/javascript' src='/js/jquery/s3slider.js'>
</script>
<script type='text/javascript'>
$(document).ready(function() { 
   $('#s3slider').s3Slider({ 
      timeOut: 2500 
   });
});
</script>
 
Date » 05 September, 2010    Copyright (c) 2010 cirrious  
Site skin inspired by Nina - thx!