/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script src="http://code.jquery.com/jquery-latest.js"></script> <script src="http://ui.jquery.com/latest/ui/effects.core.js"></script> <script> jQuery(document).ready(function(){ jQuery(".block").mouseover(function() { jQuery(this).animate({ backgroundColor: "black" }, 1000); }).mouseout(function() { jQuery(this).animate({ backgroundColor: "#68BFEF" }, 500); }) }); </script>
Comments
