Team:UNITN-Trento/JS/Team

From 2013.igem.org

Revision as of 12:26, 12 August 2013 by Ggirelli (Talk | contribs)

$(document).ready(function() { $( '#jms-slideshow' ).jmslideshow();

$img = $('#jms-slideshow .image img') alt = $img.attr('data-alt'); src = $img.attr('src'); $img.fadeOut('fast', function() { $img.attr('src',alt); $img.attr('data-alt',src); $img.fadeIn(); }); });