Team:UNITN-Trento/JS/Team

From 2013.igem.org

(Difference between revisions)
Line 2: Line 2:
$( '#jms-slideshow' ).jmslideshow();
$( '#jms-slideshow' ).jmslideshow();
-
$img = $('#jms-slideshow .image img')
+
$img = $('#jms-slideshow #caterina .image img');
alt = $img.attr('data-alt');
alt = $img.attr('data-alt');
src = $img.attr('src');
src = $img.attr('src');

Revision as of 12:28, 12 August 2013

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

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