Home > php教程 > php手册 > 导航条设计

导航条设计

WBOY
Release: 2016-06-06 20:00:57
Original
1923 people have browsed it

!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>

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template