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