x
 
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".btn1").click(function(){
  $("p").hide(1000);
  });
  $(".btn2").click(function(){
  $("p").show(1000,showColor);
  $("p").css("background-color","red");
  });
});
function showColor()
{
$("p").css("background-color","green");
}
</script>
</head>
<body>
<p>This is a paragraph.</p>
<button class="btn1">Hide</button>
<button class="btn2">Show</button>
</body>
</html>