日期:2014-05-16 浏览次数:20357 次
<script type="text/javascript"> function showTopNav(layerName){ eval('document.getElementById('+ "'" + layerName + "'" +').style.display = "block"'); } function hideTopNav(layerName){ eval('document.getElementById('+ "'" + layerName + "'" +').style.display = "none"'); } </script> </head> <body> <ul class="s1"> <li onmouseover="showTopNav('new1')" onmouseout="hideTopNav('new1')"><a href="#">新闻一</a> <ul id="new1"> <li><a href="#">新闻一</a></li> <li><a href="#">新闻一</a></li> <li><a href="#">新闻一</a></li> </ul> </li> <li onmouseover="showTopNav('new2')" onmouseout="hideTopNav('new2')"><a href="#">新闻二</a> <ul id="new2" style=" position:absolute; top:43px; left:0px;"> <li><a href="#">新闻二</a></li> <li><a href="#">新闻二</a></li> <li><a href="#">新闻二</a></li> </ul> </li> </ul>
<script type="text/javascript"> function showTopNav(layerName){ document.getElementById(layerName).style.display = "block"; } function hideTopNav(layerName){ document.getElementById(layerName).style.display = "none"; } </script>