Samanta
Tra gli script ce n'e' uno che agisce sulla trasparenza degli articoli in evidenza:
<script type="text/javascript"> function showEl(el){ var prev = el.prev(); if( prev.length==0) prev = $("#mostImportantProducts li").last(); var next = el.next(); if( next.length==0 ) next = $("#mostImportantProducts li").first(); prev.delay(2000).animate( {opacity:0}, 1000 ); el.delay(2000).animate( {opacity:1}, 2000, function(){showEl(next);} ); } jQuery(document).ready(function() { var first = $("#mostImportantProducts li").first(); // setto l'altezza della clip $("#mostImportantProducts ul").height( first.outerHeight(true) ); // nascondo tutti i LI tranne il primo $("#mostImportantProducts li").not(':first').each(function(){ $(this).css("opacity",0); }) // start con l'animazione showEl( first ); }); </script>
|