Autor
Nachricht
muepfe-radio
22.05.2009 um 21:34 (UTC) Titel: Coolmenü Code-Frage
Hallo,
ich wollte mal fragen wie es möglich ist, das wenn, ich mit der Maus auf die schwarze Schrift drauffahre, sie Weiß wird.
Beispiel:
http://s7b.directupload.net/file/d/1802/bog6tgu2_png.htm
Hier der Coolmenü Code:
Code: <style type="text/css" media="screen">
<!--
body
{
font-family: Verdana, sans-serif;
font-size: 14px;
overflow: auto;
padding: 10px;
margin: 00px;
}
ul, li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
li a
{
padding-right: 05px;padding-top: 35px;
}
div.menu
{
position: absolute;
z-index: 3;
top: 135px;
left: -01%;
margin-left: 25px;
width:-05px;
}
.menu li
{
width: 130px;
float: left;
}
.menu a
{
border: 0px solid #;
background-color: #;
background-image: url(URL);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: pointer;
margin: 0px;
display: block;
height: 27px;
color: #;
}
.menu a:hover
{
background-color: #;
background-image: url(URL);
}
#smenu1, #smenu2, #smenu3, #smenu4, #smenu5
{
font-size: 14px;
display: none;
width: 160px;
float: left;
}
#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a
{
font-weight: bold;
padding-top: 5px;
border-top: 0px;
cursor: pointer;
color: #;
}
//-->
</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">
<li><a href="http://muepfe-radio.de.tl/Startseite.htm" onmouseover="montre('Startseite');" onmouseout="cache('Startseite');">Startseite</a>
<ul id="Startseite" onmouseover="montre('Startseite');" onmouseout="cache('Startseite');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Sendungen-%26-Programm.htm" onmouseover="montre('Sendungen & Programm');" onmouseout="cache('Sendungen & Programm');">Sendungen & Programm</a>
<ul id="Sendungen & Program" onmouseover="montre('Sendungen & Programm');" onmouseout="cache('Sendungen & Programm');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Service.htm" onmouseover="montre('Service');" onmouseout="cache('Service');">Service</a>
<ul id="Service" onmouseover="montre('Service');" onmouseout="cache('Service');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Nachrichtenarchiv.htm" onmouseover="montre('Nachrichten & Wissen');" onmouseout="cache('Nachrichten & Wissen');">Nachrichten & Wissen</a>
<ul id="Nachrichten & Wissen" onmouseover="montre('Nachrichten & Wissen');" onmouseout="cache('Nachrichten & Wissen');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Blog.htm" onmouseover="montre('Blog');" onmouseout="cache('Blog');">Blog</a>
<ul id="Blog " onmouseover="montre('Blog');" onmouseout="cache('Blog');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Events.htm" onmouseover="montre('Events');" onmouseout="cache('Events');">Events</a>
<ul id="Events" onmouseover="montre('Events');" onmouseout="cache('Events');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Medientheke.htm" onmouseover="montre('Mediathek');" onmouseout="cache('Mediathek');">Mediathek</a>
<ul id="Mediathek" onmouseover="montre('Mediathek');" onmouseout="cache('Mediathek');">
</ul>
</li>
</div>
Was müsste ich da verändern?
Grüße
Andreas
↑
b6c
22.05.2009 um 22:51 (UTC) Titel:
Hi, das die Schrift weiß wird, wenn man drübe geht, das erreicht man mit dem Hover-Effekt.
Zitat: .
<style type="text/css" media="screen">
<!--
body
{
font-family: Verdana, sans-serif;
font-size: 14px;
overflow: auto;
padding: 10px;
margin: 00px;
}
ul, li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
li a
{
padding-right: 05px;padding-top: 35px;
}
div.menu
{
position: absolute;
z-index: 3;
top: 135px;
left: -01%;
margin-left: 25px;
width:-05px;
}
.menu li
{
width: 130px;
float: left;
}
.menu a
{
border: 0px solid #;
background-color: #;
background-image: url(URL);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: pointer;
margin: 0px;
display: block;
height: 27px;
color: #;
}
menu a:hover
{
background-color: #;
background-image: url(URL);
}
#smenu1, #smenu2, #smenu3, #smenu4, #smenu5
{
font-size: 14px;
display: none;
width: 160px;
float: left;
}
#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a
{
font-weight: bold;
padding-top: 5px;
border-top: 0px;
cursor: pointer;
color: #;
}
//-->
</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">
<li><a href="http://muepfe-radio.de.tl/Startseite.htm" onmouseover="montre('Startseite');" onmouseout="cache('Startseite');">Startseite</a>
<ul id="Startseite" onmouseover="montre('Startseite');" onmouseout="cache('Startseite');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Sendungen-%26-Programm.htm" onmouseover="montre('Sendungen & Programm');" onmouseout="cache('Sendungen & Programm');">Sendungen & Programm</a>
<ul id="Sendungen & Program" onmouseover="montre('Sendungen & Programm');" onmouseout="cache('Sendungen & Programm');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Service.htm" onmouseover="montre('Service');" onmouseout="cache('Service');">Service</a>
<ul id="Service" onmouseover="montre('Service');" onmouseout="cache('Service');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Nachrichtenarchiv.htm" onmouseover="montre('Nachrichten & Wissen');" onmouseout="cache('Nachrichten & Wissen');">Nachrichten & Wissen</a>
<ul id="Nachrichten & Wissen" onmouseover="montre('Nachrichten & Wissen');" onmouseout="cache('Nachrichten & Wissen');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Blog.htm" onmouseover="montre('Blog');" onmouseout="cache('Blog');">Blog</a>
<ul id="Blog " onmouseover="montre('Blog');" onmouseout="cache('Blog');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Events.htm" onmouseover="montre('Events');" onmouseout="cache('Events');">Events</a>
<ul id="Events" onmouseover="montre('Events');" onmouseout="cache('Events');">
</ul>
</li>
<li><a href="http://muepfe-radio.de.tl/Medientheke.htm" onmouseover="montre('Mediathek');" onmouseout="cache('Mediathek');">Mediathek</a>
<ul id="Mediathek" onmouseover="montre('Mediathek');" onmouseout="cache('Mediathek');">
</ul>
</li>
</div>
background-color: #; = hier kommt dein HEX-Code Rein.
______________
↑
der-bielefeld-club
Premium
Support-Team
Wohnort: Bielefeld
22.05.2009 um 23:37 (UTC) Titel:
Hi,
Ich muss dich leider leicht verbessern, Steffen
Denn du musst den Befehl ohne "background-" einbringen,
darum würde das dann so Aussehen:
Zitat: menu a:hover
{
color : #FFFFFF ;
background-image: url(URL);
}
Beim
blauen ist jetzt die Farbe weiß eingestellt
mfg Dominik
______________
Besucht die offizielle Hilfeseite vom Homepage-Baukasten:
Iceblue Generator |
Red Generator |
Butterfly Generator
↑
muepfe-radio
23.05.2009 um 09:21 (UTC) Titel:
Hallo,
vielen Dank an der-bielefeld-club und b6c.de.tl für die tolle Hilfe.
Grüße
Andreas
Zuletzt bearbeitet von muepfe-radio am 23.05.2009, 10:34, insgesamt 2-mal bearbeitet
↑
der-bielefeld-club
Premium
Support-Team
Wohnort: Bielefeld
↑
max-im-web
23.05.2009 um 13:17 (UTC) Titel:
hi,
wenn ich auf deine Seite gehe ist die Navischrift wenn ich mit der Maus rüber fahre weiß.
Gruß,
Max
______________
http://blog.mamuehi.de
↑