<!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 ">
<Kopf>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Div+CSS+JS wird in der Bibliothek angezeigt</title>
<meta name="description" content=" http://alexa.knowsky.com ">
<style type="text/css">
<!--
*{margin:0;padding:0;border:0;}
Körper {
Schriftfamilie: Arial, 宋体, Serif;
Schriftgröße:12px;
}
#nav {
Breite: 180 Pixel;
Zeilenhöhe: 24px;
Listenstiltyp: keiner;
text-align:left;
}
#nav a {
Breite: 160px;
Anzeige: Block;
padding-left:20px;
}
#nav li {
Hintergrund:#CCC;
border-bottom:#FFF 1px solid;
float:left;
}
#nav li a:hover{
Hintergrund:#CC0000;
}
#nav a:link {
Farbe:#666; Textdekoration: keine;
}
#nav a:visited {
Farbe:#666;Textdekoration:keine;
}
#nav a:hover {
Farbe:#FFF;Textdekoration:keine;Schriftstärke:fett;
}
#nav li ul {
Listenstil:none;
text-align:left;
}
#nav li ul li{
Hintergrund: #EBEBEB;
}
#nav li ul a{
padding-left:20px;
Breite: 160 Pixel;
}
#nav li ul a:link {
Farbe:#666; Textdekoration: keine;
}
#nav li ul a:visited {
Farbe:#666;Textdekoration:keine;
}
#nav li ul a:hover {
Farbe:#F3F3F3;
Textdekoration: keine;
Schriftstärke:normal;
Hintergrund:#CC0000;
}
#nav li:hover ul {
links: automatisch;
}
#nav li.sfhover ul {
links: automatisch;
}
#Inhalt {
klar: links;
}
#nav ul.collapsed {
Anzeige: keine;
}
-->
#PARENT{
Breite:300px;
padding-left:20px;
}
</style>
</head>
<body>
<div id="PARENT">
<ul id="nav">
<li><a href="#Menu=ChildMenu1" onclick="DoMenu('ChildMenu1')">Benutzeroberfläche</a>
<ul id="ChildMenu1" class="collapsed">
<li> <a href=" http://www.www.devdao.com " target="_blank"> [url]www.www.devdao.com[/url]</a></li>
<li> <a href=" http://www.www.devdao.com " target="_blank"> [url]www.www.devdao.com[/url]</a></li>
<li> <a href=" http://www.www.devdao.com " target="_blank"> [url]www.www.devdao.com[/url]</a></li>
</ul>
</li>
<li><a href="#Menu=ChildMenu2" onclick="DoMenu('ChildMenu2')">Neue Version</a>
<ul id="ChildMenu2" class="collapsed">
<a href=" http://www.www.devdao.com " target="_blank">支付</a></li>
<li><a href="#">Ihre Antwort</a></li>
<li><a href="#">Einzelheiten</a></li>
<li><a href="#">在线招领</a></li>
<li><a href="#">历史帐务</a></li>
</ul>
</li>
<li><a href="#Menu=ChildMenu3" onclick="DoMenu('ChildMenu3')">Seitenansicht</a>
<ul id="ChildMenu3" class="collapsed">
<li><a href="#">Einzelheiten</a></li>
<a href=" http://www.www.devdao.com " target="_blank">管理</a></li>
<li><a href="#">Bilder</a></li>
<li><a href="#">Bilder</a></li>
</ul>
</li>
<li><a href="#Menu=ChildMenu4" onclick="DoMenu('ChildMenu4')">Seitenansicht</a>
<ul id="ChildMenu4" class="collapsed">
<li><a href="#">Einzelheiten</a></li>
<a href=" http://www.www.devdao.com " target="_blank">管理</a></li>
<li><a href="#">Bilder</a></li>
<li><a href="#">Bilder</a></li>
</ul>
</li>
</ul>
</div>
<div style="width:300;padding-left:30px;">
</br></br>
工作需要搞了一个菜单, 分享给大家, 大家一齐学习
</br></br>
请大家支持: <a href=" http://www.www.devdao.com " target="_blank"> [url]http://www.www.devdao.com[/url]</a>
</div>
</body>
</html>
<script type=text/javascript><!--
var LastLeftID = "";
Funktion menuFix() {
var obj = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<obj.length; i++) {
obj[i].onmouseover=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
obj[i].onMouseDown=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
obj[i].onMouseUp=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
obj[i].onmouseout=function() {
this.className=this.className.replace(new RegExp("( ?|^)sfhover\b"), "");
}
}
}
Funktion DoMenu(emid)
{
var obj = document.getElementById(emid);
obj.className = (obj.className.toLowerCase() == "expanded"?"collapsed="expanded");
if((LastLeftID!="")&&(emid!=LastLeftID)) //关闭上一个Menu
{
document.getElementById(LastLeftID).className = "collapsed";
}
LastLeftID = emid;
}
Funktion GetMenuID()
{
var MenuID="";
var _paramStr = new String(window.location.href);
var _sharpPos = _paramStr.indexOf("#");
if (_sharpPos >= 0 && _sharpPos < _paramStr.length - 1)
{
_paramStr = _paramStr.substring(_sharpPos + 1, _paramStr.length);
}
anders
{
_paramStr = "";
}
if (_paramStr.length > 0)
{
var _paramArr = _paramStr.split("&");
if (_paramArr.length>0)
{
var _paramKeyVal = _paramArr[0].split("=");
if (_paramKeyVal.length>0)
{
MenuID = _paramKeyVal[1];
}
}
}
if(MenuID!="")
{
DoMenu(MenuID)
}
}
GetMenuID(); //*这两个function的顺序要注意一下,不然在Firefox里GetMenuID()不起果
menuFix();
--></script>