Template:WORKS top
From 2009.igem.org
(Difference between revisions)
KazutoIKEDA (Talk | contribs) |
KazutoIKEDA (Talk | contribs) |
||
Line 18: | Line 18: | ||
bfImg[i].src = img[i]; | bfImg[i].src = img[i]; | ||
} | } | ||
+ | |||
+ | $(document).ready( function() { | ||
+ | $(".thumbnail img").click( function() { | ||
+ | var changeSrc = this.src; | ||
+ | $(".target img").fadeOut( | ||
+ | "slow", | ||
+ | function() { | ||
+ | $(this).attr("src", changeSrc); | ||
+ | $(this).fadeIn(); | ||
+ | } | ||
+ | ); | ||
+ | }); | ||
+ | }); | ||
+ | |||
//--> | //--> | ||
</script> | </script> |
Revision as of 15:48, 19 October 2009