Difference between revisions of "Template:Team:TU Eindhoven/Timeline Script"
Line 8: | Line 8: | ||
} | } | ||
− | $(".timeBlock").hover(function(){ alert( $(this).attr(' | + | $(".timeBlock").hover(function(){ alert( $(this).attr('id').match(/\d+/) },function(){ }); |
}); | }); | ||
</html> | </html> |
Revision as of 13:54, 18 September 2015
$(document).ready(function() { for ( index = 1; index <= 11; index++){ $("
").appendTo("#timeline").css({'float':'left','width':'97px','height':'30px'}); } $(".timeBlock").hover(function(){ alert( $(this).attr('id').match(/\d+/) },function(){ }); });