Team:UCLA/Aal/javascripttemplate
From 2014.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
$("#test2").mouseenter(function(){ | $("#test2").mouseenter(function(){ | ||
$("#test2").animate({ | $("#test2").animate({ | ||
- | right:' | + | right:'10px', |
}); | }); | ||
+ | }); | ||
+ | .mouseleave(function(){ | ||
+ | $("#test2").animate({ | ||
+ | right:'-10px', | ||
+ | }); | ||
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 00:00, 7 August 2014