<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("p").hover(function () { $(this).css({ backgroundColor:"yellow", fontWeight:"bolder" }); }, function () { var cssObj = { backgroundColor: "#ddd", color: "rgb(0,40,244)" } $(this).css(cssObj); }); }); </script> </head> <body> <body> <p>Move the mouse over me.</p> </body> </html>