Autor |
Nachricht |
-
![](//wtheme.webme.com/img/profile/default.png)
gt-base
|
09.08.2007 um 19:43 (UTC) Titel: Warum wechselt die farbe nicht |
|
|
Warum wechselt die farbe nicht also der button ich habe zwei verschidene urls drin
Code: <style type="text/css" media="screen">
<!--
body
{
font-family: Verdana, 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: 180px;
left:300px;
}
.menu li
{
width: 140px;
float: left;
}
.menu a
{
border: 1px solid #888;
background-color: #000000;
background-image: url(http://img.webme.com/pic/c/css-treff/button-blau.png);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: default;
margin: 0px 2px;
display: block;
height: 20px;
color: #99ff00;
}
.menu a:hover
background-image: url(http://img.webme.com/pic/c/css-treff/button-rot.png);
{
background-color: #000099;
}
#smenu1, #smenu2, #smenu3, #smenu4, #smenu5, #smenu6
{
font-size: 16px;
display: none;
width: 140px;
float: left;
}
#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a, #smenu6 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('smenu1');" onmouseout="cache('smenu1');">
MENÜ 1</a>
<ul id="smenu1" onmouseover="montre('smenu1');" onmouseout="cache('smenu1');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
MENÜ 2</a>
<ul id="smenu2" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
MENÜ 3</a>
<ul id="smenu3" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
MENÜ 4</a>
<ul id="smenu4" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
</ul>
</div> |
|
↑
|
|
![](templates/subSilver/images/spacer.gif) |
-
![](//wtheme.webme.com/img/profile/default.png)
rockforever2
|
09.08.2007 um 20:05 (UTC) Titel: Re: Warum wechselt die farbe nicht |
|
|
gt-base hat Folgendes geschrieben: Warum wechselt die farbe nicht also der button ich habe zwei verschidene urls drin
Code: <style type="text/css" media="screen">
<!--
body
{
font-family: Verdana, 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: 180px;
left:300px;
}
.menu li
{
width: 140px;
float: left;
}
.menu a
{
border: 1px solid #888;
background-color: #000000;
background-image: url(http://img.webme.com/pic/c/css-treff/button-blau.png);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: default;
margin: 0px 2px;
display: block;
height: 20px;
color: #99ff00;
}
.menu a:hover
background-image: url(http://img.webme.com/pic/c/css-treff/button-rot.png);}
background-color: #000099;
}
#smenu1, #smenu2, #smenu3, #smenu4, #smenu5, #smenu6
{
font-size: 16px;
display: none;
width: 140px;
float: left;
}
#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a, #smenu6 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('smenu1');" onmouseout="cache('smenu1');">
MENÜ 1</a>
<ul id="smenu1" onmouseover="montre('smenu1');" onmouseout="cache('smenu1');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
MENÜ 2</a>
<ul id="smenu2" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
MENÜ 3</a>
<ul id="smenu3" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
MENÜ 4</a>
<ul id="smenu4" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
</ul>
</div>
Zuletzt bearbeitet von rockforever2 am 09.08.2007, 21:07, insgesamt 2-mal bearbeitet
|
|
↑
|
|
![](templates/subSilver/images/spacer.gif) |
-
![](//wtheme.webme.com/img/profile/default.png)
gt-base
|
09.08.2007 um 21:35 (UTC) Titel: |
|
|
könnt ihr mir mal bitte alles rot machen was ihr ausgebessert habt |
|
↑
|
|
![](templates/subSilver/images/spacer.gif) |
-
![zwoelfs-hpdesigns](//profile.webme.com/profile/z/zwoelfs-hpdesigns/small.png)
zwoelfs-hpdesigns
|
09.08.2007 um 23:37 (UTC) Titel: |
|
|
So ist es richtig
Zitat: <style type="text/css" media="screen">
<!--
body
{
font-family: Verdana, 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: 180px;
left:300px;
}
.menu li
{
width: 140px;
float: left;
}
.menu a
{
border: 1px solid #888;
background-color: #000000;
background-image: url(http://img.webme.com/pic/c/css-treff/button-blau.png);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: default;
margin: 0px 2px;
display: block;
height: 20px;
color: #99ff00;
}
.menu a:hover
{
background-image: url(http://img.webme.com/pic/c/css-treff/button-rot.png);
background-color: #000099;
}
#smenu1, #smenu2, #smenu3, #smenu4, #smenu5, #smenu6
{
font-size: 16px;
display: none;
width: 140px;
float: left;
}
#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a, #smenu6 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('smenu1');" onmouseout="cache('smenu1');">
MENÜ 1</a>
<ul id="smenu1" onmouseover="montre('smenu1');" onmouseout="cache('smenu1');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
MENÜ 2</a>
<ul id="smenu2" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
MENÜ 3</a>
<ul id="smenu3" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
<li><a href="javascript:void(0);" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
MENÜ 4</a>
<ul id="smenu4" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
<li><a href="URL">SUB MENÜ 1</a></li>
<li><a href="URL">SUB MENÜ 2</a></li>
<li><a href="URL">SUB MENÜ 3</a></li>
<li><a href="URL">SUB MENÜ 4</a></li>
<li><a href="URL">SUB MENÜ 5</a></li>
<li><a href="URL">SUB MENÜ 6</a></li>
</ul>
</li>
</ul>
</div>
Zuletzt bearbeitet von zwoelfs-hpdesigns am 10.08.2007, 00:37, insgesamt einmal bearbeitet
|
|
↑
|
|
![](templates/subSilver/images/spacer.gif) |
|