done
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>挑战题</title>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("li:gt(3):not(:last)").css("display","none");
$("a").click(function(){
if($(this).html()=="更多"){
$("a").html("简化");
$("li:hidden").show();
}else if($("a").html()=="简化"){
$(this).html("更多");
$(".noplay").css("display","none");
}
});
});
</script>
</head>
<body>
<ul>
<li>第一行</li>
<li>第二行</li>
<li>第三行</li>
<li>第四行</li>
<li class="noplay">第五行</li>
<li class="noplay">第六行</li>
<li class="noplay">第七行</li>
<li>第八行</li>
<a href="#">更多</a>
</ul>
</body>
</html>