<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
   #menu{width:300px;}
   .has_children{ background:#555;color:#fff;cursor:pointer;}
   .highlight{color:#fff;background:green;}
   div {padding:0;margin:10px 0;}
   div a{background:#888;display:none;float:left;width:300px;}
    
</style><script type="text/javascript" src="js/jquery-1.3.1.js"></script><script type="text/javascript">
$(".has_children").click(function(){
   $(this).addClass("highlight")
      .children("a").show().end()
  .siblings().removeClass("highlight")
  .children("a").hide();
});
</script>
</head><body><div id="menu">
  <div class="has_children">
  <span>第1章认识jQuery</span>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  </div>
<div class="has_children">
  <span>第2章jQuery的选择器</span>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  </div>
  
  
  <div class="has_children">
  <span>第3章jQuery中的DOM操作</span>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  <a>1.1-JavaScript和JavaScript库</a>
  </div>
 
 </div>
</body>
</html>