Team:Freiburg Bioware/jquery
From 2010.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | $("img").wrap('<div class="img" />'); | + | $("img").wrap('<div class="' + this.class + ' img" />'); |
$("img").after(function() { | $("img").after(function() { | ||
return '<div class="subtitle">' + this.alt + '</div>'; | return '<div class="subtitle">' + this.alt + '</div>'; |
Revision as of 10:41, 18 October 2010