Archivlink: javarea.de Forum > JavaScript > navi
Vollständigen Link anzeigen: javarea.de Forum > JavaScript > navi

Pages: [1]

geschrieben von nova2004de am 04.02.2008 - 13:53
Hallo ich brauche eure Hilfe, bevor ich hier jetzt erklere was ich brauche zeige ich euch ein Beispiel von einer Seite http://www.bonn.de/ ich mochte die gleiche navi haben, also wen ich auf einen Schaltfläche drauf gehe das es dann runter kommt

geschrieben von Klaush am 04.02.2008 - 14:43
Dann solltest Du einen Blick in's Archiv werfen, dort findest Du mit Sicherheit ein geeignetes.

geschrieben von nova2004de am 04.02.2008 - 16:59
Ich habe eine Frage warum ist die Position der navi an unterschitliche Positionen also in dreamweaver ist der Mitte und in firefox ist die wo anders


Zitat
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="content-style-type" content="text/css">
<title>Foldoutmenue Horizontal</title>

<style type="text/css" media="screen">
<!--
body
{
font-family: Verdana, sans-serif;
font-size: 14px;
overflow: auto;
padding: 10px;
margin: 0px;
}

ul, li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}

.menu
{
position: absolute;
z-index: 3;
top: 10px;
}

.menu li
{
width: 140px;
float: left;
}

.menu a
{
border: 1px solid #888;
background-color: #fff;
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: default;
margin: 0px 2px;
display: block;
height: 20px;
color: #000;
}

.menu a:hover
{
background-color: #ccc;
}

#smenu1, #smenu2, #smenu3, #smenu4
{
font-size: 12px;
display: none;
width: 140px;
float: left;
}

#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a
{
font-weight: normal;
padding-top: 2px;
border-top: 0px;
cursor: pointer;
}
//-->
</style>

<script type="text/javascript">
<!--
function montre(id)
{
with (document)
{
if (getElementById)
getElementById(id).style.display = 'block';
else if (all)
all[id].style.display = 'block';
else
layers[id].display = 'block';
}
}

function cache(id)
{
with (document)
{
if (getElementById)
getElementById(id).style.display = 'none';
else if (all)
all[id].style.display = 'none';
else
layers[id].display = 'none';
}
}
//-->
</script>

</head>
<body>

<div class="menu">
<ul>
<li><a href="javascript:void(0);" onmouseover="montre('smenu1');" onmouseout="cache('smenu1');">Menu 1</a>
<ul id="smenu1" onmouseover="montre('smenu1');" onmouseout="cache('smenu1');">
<li><a href="">Subkategorie 1.1</a></li>
<li><a href="">Subkategorie 1.2</a></li>
<li><a href="">Subkategorie 1.3</a></li>
</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">Menu 2</a>
<ul id="smenu2" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
<li><a href="">Subkategorie 2.1</a></li>
<li><a href="">Subkategorie 2.2</a></li>
</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">Menu 3</a>
<ul id="smenu3" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
<li><a href="">Subkategorie 3.1</a></li>
<li><a href="">Subkategorie 3.2</a></li>
<li><a href="">Subkategorie 3.3</a></li>
<li><a href="">Subkategorie 3.4</a></li>
<li><a href="">Subkategorie 3.5</a></li>
</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">Menu 4</a>
<ul id="smenu4" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
<li><a href="">Subkategorie 4.1</a></li>
<li><a href="">Subkategorie 4.2</a></li>
<li><a href="">Subkategorie 4.3</a></li>
</ul>
</li>
</ul>
</div>

</body>
</html>

geschrieben von nova2004de am 04.02.2008 - 19:14
Leute ich brauche echt Hilfe, ich bin am Ende ich kann nicht mehr ich habe schon alles ausprobiert aber ich bekomme das nicht hin. Ich mochte ja sowas ähnliches machen wie auf der Bonner http://www.bonn.de/ Seite aber ich bekomme das nicht hin, kann mir jemand helfen
Dreamweaver
http://www2.picfront.org/picture/4DWda8YSqI/img/dreamweaver.jpg

Firefox
http://www2.picfront.org/picture/RpXHgPWQt/img/firefox.jpg


Powered by: JBB v.2.0.4 Copyright ©2000-2006, www.javarea.de.