日期:2014-05-16  浏览次数:20363 次

jquery导航式弹出菜单问题,熟悉animate进
<!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>
<script src="jquery-1.7.js" type="text/javascript">
</script>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
#Layer1 {
position:absolute;
width:100px;
height:215px;
z-index:1;
background-color: #009900;
}
-->
</style>
<script type="text/javascript">
 $(document).ready(function()
  {
  $("#tb1").hide();
$("#Layer1").height("0px");
$("#td1").mouseover(function()
{
$("tb1").show(300);
$("#Layer1").animate({height:"215px"},300);
});
$("#td1").mouseout(function()
{
$("tb1").hide(300);
$("#Layer1").animate({height:"0px"},300);
});
  });
</script>
</head>

<body>
<table width="702" border="0" cellpadding="0" cellspacing="0" bgcolor="#006699">
  <tr>
  <td><table width="700" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td width="100" height="30" id="td1"><div align="center" class="STYLE1">要闻</div></td>
  <td width="100">&nbsp;</td>
  <td width="100">&nbsp;</td>
  <td width="100">&nbsp;</td>
  <td width="100">&nbsp;</td>
  <td width="100">&nbsp;</td>
  <td>&nbsp;</td>
  </tr>
  <tr>
  <td><div id="Layer1">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="tb1">
  <tr>
  <td>项目0</td>
  </tr>
  <tr>
  <td><div align="center">项目1</div></td>
  </tr>
  <tr>
  <td><div align="center">项目2</div></td>
  </tr>
  <tr>
  <td><div align="center">项目3</div></td>
  </tr>
  <tr>
  <td><div align="center">项目4</div></td>
  </tr>
  <tr>
  <td><div align="center">项目5</div></td>
  </tr>
  <tr>
  <td><div align="center">项目6</div></td>
  </tr>
<tr>
  <td><div align="center">项目7</div></td>
  </tr>
<tr>
  <td><div align="center">项目8</d