淡进淡出代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script src="scripts/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#hit").click(function(){
//$("#show").fadeIn("slow");
$("#show").fadeIn("slow").delay(3000).fadeOut("fast");
})
$("#close").click(function(){
$("#show").fadeOut("slow");
//$("#show").hide("slow"); //1.3.1方法
})
})
</script>
</head>
<body>
<a href="javascript:;" id="hit">点击展开</a>
<a href="javascript:;" id="close">点击展开</a>
<div style="width:300px; background-color:#ffefa4; border:1px #FF9900 solid; text-align:left; padding:5px; line-height:150%; color:#dc6800;display:none;font-size:12px;" id="show">我知道我们都没有错,只是望了怎么退后。</div>
</body>
</html>