Suche im Forum:
Suchen


« Vorheriges Thema anzeigen :: Nächstes Thema anzeigen »  
Autor Nachricht
Beitrag20.07.2007 um 10:35 (UTC)    
Titel: Buttons!!!

Ich mache gerade Buttons in der Navi drinne und sie sollen so aussehen:
Navi1 Navi2
navi3 Navi4
Navi5 Navi6

Doch da geht immer was schief könnt mir jemand das richtig machen??? Wäre sehr nett!!!

Code:
Zitat:
<style type="text/css" media="screen">
<!--
body2
{
font-family: Arial, sans-serif;
font-size: 18px;
overflow: auto;
padding: 10px;
margin: 0px;
}

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

div.menu1
{
position: absolute;
z-index: 3;
top: 290px;
left:680px;
}

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

.menu1 a
{
border: 1px solid #888;
background-color: #0066FF;
background-image: url(URL DES NORMALEN BUTTON);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: default;
margin: 0px 2px;
display: block;
height: 20px;
color: #FFFF00;
}

.menu1 a:hover
{
background-image: url(URL DES HOVER BUTTON);
background-color: #0066FF;
}

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

#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a, #smenu6 a, #smenu7 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>



<div class="menu1">
<ul>

<li><a href="javascript:void(0);" onmouseover="montre('smenu1');" onmouseout="cache('smenu1');">
Media</a>
<ul id="smenu1" onmouseover="montre('smenu1');" onmouseout="cache('smenu1');">
<li><a href="http://mediabereich.de.tl/">Media</a></li>
<li><a href="http://hsm-download.de.tl">Download</a></li>
<li><a href="http://hsmlyrics.de.tl/">Lyrics&Songs</a></li>
<li><a href="http://hsmfan.hs.ohost.de/cpg1.4.12/cpg1412/">Gallery</a></li>
</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
Site</a>

<ul id="smenu2" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
<li><a href="http://hsmfan.de.tl/News.htm">News</a></li>
<li><a href="http://hsmfan.de.tl/Games.htm">Games</a></li>
<li><a href="http://hsmfan.de.tl/HSMFAN-TV.htm">HSMFAN TV</a></li>
<li><a href="http://hsmfan.de.tl/HSM_Ice-Tour.htm">HSM Ice-Tour</a></li>
<li><a href="http://youhsm.de.tl">YouHSM</a></li>
</ul>
</li>
</div>


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

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

div.menu
{
position: absolute;
z-index: 3;
top: 250px;
left:680px;
}

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

.menu a
{
border: 1px solid #888;
background-color: #0066FF;
background-image: url(URL DES NORMALEN BUTTON);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: default;
margin: 0px 2px;
display: block;
height: 20px;
color: #FFFF00;
}

.menu a:hover
{
background-image: url(URL DES HOVER BUTTON);
background-color: #0066FF;
}

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

#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a, #smenu6 a, #smenu7 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>



<div class="menu">
<ul>
<li><a href="javascript:void(0);" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
Home</a>
<ul id="smenu3" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
<li><a href="http://hsmfan.de.tl/">Startseite</a></li>
<li><a href="http://hsmfan.de.tl/HSM-Newsletter.htm">Newsletter</a></li>
</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
About</a>

<ul id="smenu4" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
<li><a href="http://hsmfan.de.tl/Darsteller.htm">Darsteller</a></li>
</ul>
</li>
</div>


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

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

div.menu
{
position: absolute;
z-index: 3;
top: 320px;
left:680px;
}

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

.menu a
{
border: 1px solid #888;
background-color: #0066FF;
background-image: url(URL DES NORMALEN BUTTON);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: default;
margin: 0px 2px;
display: block;
height: 20px;
color: #FFFF00;
}

.menu a:hover
{
background-image: url(URL DES HOVER BUTTON);
background-color: #0066FF;
}

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

#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a, #smenu6 a, #smenu7 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>



<div class="menu">
<ul>
<li><a href="javascript:void(0);" onmouseover="montre('smenu5');" onmouseout="cache('smenu5');">
Interact</a>
<ul id="smenu5" onmouseover="montre('smenu5');" onmouseout="cache('smenu5');">
<li><a href="http://www.hsmfan.de.tl/Picture-of-the-Week.htmPicture of the week</a></li>
<li><a href="http://www.hsmfan.de.tl/Votings.htm">Votings</a></li>
</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu6');" onmouseout="cache('smenu6');">
Web</a>
<ul id="smenu6" onmouseover="montre('smenu6');" onmouseout="cache('smenu6');">
<li><a href="http://www.hsmfan.de.tl/Affiliates.htm">Affiliates</a></li>
<li><a href="http://www.hsmfan.de.tl/%3E%3E%3EVerlink-uns%3C%3C%3C.htm">Link us</a></li>
<li><a href="http://www.hsmfan.de.tl/Info.htm">Info</a></li>
</ul>
</li>
</div>


Grüße Anil K.
______________
Besucht meine Homepage und habt viel spaß!!! Very Happy
Beitrag20.07.2007 um 11:02 (UTC)    
Titel:

Wieso setzt du nicht einfach 2 Menüs nebeneinander? Das ginge leichter und wenn du es nicht so machen willst, dann müsstest du einiges am Code ändern.
______________
LG André

GMMTS.de
Beitrag20.07.2007 um 17:48 (UTC)    
Titel:

also ich würdes mal mit jedem einzelnen button verschieben versuchen.
______________
[img:5be596dbf0]http://poor-earth.de.tl/sig.png[/img:5be596dbf0]
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de