Home  >  Article  >  php教程  >  导航条设计

导航条设计

WBOY
WBOYOriginal
2016-06-06 20:00:571869browse

!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=utf-8" / titl





无标题文档



<script><br />function getObject(objectId) { <br /> if(document.getElementById && document.getElementById(objectId)) {return document.getElementById(objectId);} <br /> else if (document.all && document.all(objectId)) {return document.all(objectId); } <br /> else if (document.layers && document.layers[objectId]) {return document.layers[objectId]; } <br /> else {return false;} <br />} <p>//资讯<br />var dTag = document.getElementById("menu").getElementsByTagName("a");<br />for(var i=0;i<dTag.length;i++){<br /> dTag[i].onmouseover=function(){<br /> for(var ii=0;ii<dTag.length;ii++){<br /> dTag[ii].className="menupri";<br /> getObject("submenu"+ii).className="hidden";<br /> }<br /> <br /> this.className="menus"; <br /> var tagStr=this.id.substring(3);<br /> getObject("submenu"+tagStr).className="submenu";<br /> }<br />} <p></script>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:MySQL 1364 错误解决办法Next article:get 标签调用文章