| | | | |
| |||||||
| HTML, Usability und Barrierefreiheit Themen rund um Textauszeichnung, Formatierung, Barrierefreiheit und Usability. |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| Gast
Beiträge: n/a
| Hi, habe nach langem suchen und basteln folgendes zusammengebastellt: drop.css Code: /* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */
body
{
font-family: "Tahoma, Arial, Verdana";
font-size: 12px;
}
ul
{
margin: 0;
padding: 0;
list-style: none;
width: 150px;
border-bottom: 1px solid #ccc;
}
ul li
{
position: relative;
}
li ul
{
position: absolute;
left: 149px;
top: 0;
display: none;
}
ul li a
{
display: block;
text-decoration: none;
color: #777777;
background: #FFFFFF;
padding: 2px;
border: 1px solid #CCCCCC;
border-bottom: 0;
}
li:hover ul, li.over ul
{
display: block;
}
a:hover
{
background: #DFE4EF;
font-weight: bold;
}
Code: <html>
<head>
<title>TEST-DROPDOWN MENÜ</title>
<link rel="stylesheet" href="css/drop.css" type="text/css">
<script language="JavaScript">
startList = function()
{
if (document.all&&document.getElementById)
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++)
{
node = navRoot.childNodes[i];
if (node.nodeName=="LI")
{
node.onmouseover=function()
{
this.className+=" over";
}
node.onmouseout=function()
{
this.className=this.className.replace>>(" over", "");
}
}
}
}
}
window.onload=startList;
</script>
</head>
<body>
<ul id="nav"> [*]Home [*]About
<ul> [*]History [*]Team [*]Offices [/list] [*]Services
<ul> [*]Web Design [*]<a href="#">Internet
Marketing</a> [*]Hosting [*]Domain Names [*]Broadband [/list] [*]Contact Us
<ul> [*]United Kingdom [*]France [*]USA
<ul>[*]Nordamerika</lI>[*]Südamerika</lI>[/list][*]Australia [/list] [/list]
</body>
</html>
|
|
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Erfahrener Benutzer Registriert seit: 08.03.2005
Beiträge: 123
![]() | hi... hab im mom ein ähnliches Problem... hab dann einfach ein Menü von Javarea.de genommen war ich ganz zufrieden mit... cu
__________________ Was auch immer, du mich auch! |
| | |
|
| Themen-Optionen | |
| Thema bewerten | |
|
|

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.