Team:UCL E/js

From 2013.igem.org

(Difference between revisions)
Line 1: Line 1:
$(document).ready(function(){
$(document).ready(function(){
-
$("a").on('hover', function(e) {
+
$("a").hover(function(){
-
    if(e.type == 'mouseenter') {
+
       $(this).animate({color:'#73B9FF'},500);
       $(this).animate({color:'#73B9FF'},500);
-
     } else {
+
     }),function() {
       $(this).animate({color:'#000'},500);
       $(this).animate({color:'#000'},500);
-
     }
+
     });
-
});
+
});
});

Revision as of 11:09, 20 July 2013

$(document).ready(function(){

$("a").hover(function(){

     $(this).animate({color:'#73B9FF'},500);
   }),function() {
     $(this).animate({color:'#000'},500);
   });


});