Hallo!
Ich habe folgendes Problem:
Ich habe ein Menü generiert, welches den aktellen Menüpunkt mit Hilfe eines Stylesheets in einer anderen Farbe darstellt! Dies funktioniert auch!
Wenn ich jedoch die Seite das Erstemal aufrufe, wird der akteulle Menüpunkt nicht mit der Richtigen Formatierung angezeigt!
Sobald ich auf irgendeinen Menüeintrag klicke, funktioniert alles, so wie es soll!
Mein Template:
marks._MENU = HMENU
marks._MENU {
entryLevel = 0
wrap = <table> | </table>
1 = TMENU
1 {
expAll = 1
CUR = 1
NO {
allWrap = <tr><td colspan=2> | </td></tr>
ATagParams = class=menu
}
CUR {
allWrap = <tr><td colspan=2> | </td></tr>
ATagParams = class=menuact
}
}
2 = TMENU
2 {
expAll = 1
CUR = 1
NO {
allWrap = <tr> <td width=10></td> <td> | </td></tr>
ATagParams = class=menu
}
CUR {
allWrap = <tr> <td width=10></td> <td> | </td></tr>
ATagParams = class=menuact
}
}
}
Ich hoffe, mir kann jemand weiter Helfen!
mfg hounsta
Hab den Fehler schon gefunden! Im Template war alles ok. Das Stylesheet hatte einen Fehler!
mfg hounsta!
Hallo hounsta,
das kommt mir doch bekannt vor: Einen ähnlichen Thread hab ich erst Letztens aufgegeben
-->
#5846
Leider bin ich bisher noch nicht auf die Lösung gekommen. Wäre nett, wenn du deine hier mal posten könntest.
Hier noch mal meine CSS Datei:
body {
<!--font-family: Verdana, Arial, Helvetica, Univers, 'Zurich BT', sans-serif;
font-size: 12px;
color: #333333;
font-weight: normal;
font-style: normal;
background-color: #336699;-->
scrollbar-base-color:silver;
scrollbar-arrow-color:#000080;
scrollbar-track-color:#86B1D5;
scrollbar-3dlight-color:lightsteelblue;
scrollbar-highlight-color:lightcyan;
scrollbar-darkshadow-color:darkslategray;
scrollbar-shadow-color:slategray;
scrollbar-face-color:#8F8F8F;
margin : 15px 0px 0px 0px;
}
a:link{color: #00007F;text-decoration: none;}
a:visited{color: #00007F;text-decoration: none;}
a:hover{color:#0040FF;text-decoration: none;}
a:active{color: #800080;text-decoration: none;}
h1 {
font-family: Arial, Helvetica, Univers, 'Zurich BT', sans-serif;
font-size: 14px;
color: #666666;
font-weight: bolder;
font-style: normal;
text-decoration: none;
margin-bottom: -1px;
}
h2 {
font-family: Arial, Helvetica, Univers, 'Zurich BT', sans-serif;
font-size: 13px;
color: #666666;
font-weight: bold;
font-style: normal;
text-decoration:none;
margin-bottom: -3px;
}
h3 {
font-family: Arial, Helvetica, Univers, 'Zurich BT', sans-serif;
font-size: 12px;
color: #666666;
font-weight: bold;
font-style: normal;
text-decoration:none;
margin-bottom: -3px;
}
td {
font-family: Arial, Helvetica, Univers, 'Zurich BT', sans-serif;
font-size: 12px;
color: #333333;
}
### Klasse für Menü-Ebene1 ###
a.menu1:link {font-size: 12px;font-weight: bolder;color: #0066CC;text-decoration: none;}
a.menu1:visited {font-size: 12px;font-weight: bolder;color: #0066CC;text-decoration: none;}
a.menu1:hover {font-size: 12px;font-weight: bolder;color: #0066CC;text-decoration: underline;}
a.menu1:active {font-size: 12px;font-weight: bolder;color: #0066CC;text-decoration: none;}
### Klasse für Menü-Ebene2 ###
a.menu2:link {font-size: 10px;color: #FFFFFF;font-weight: bolder;text-decoration: none;}
a.menu2:visited {font-size: 10px;font-weight: bolder;color: #FFFFFF;text-decoration: none;}
a.menu2:hover {font-size: 10px;font-weight: bolder;color: #FFFFFF;text-decoration: underline;}
a.menu2:active {font-size: 10px;font-weight: bolder;color: #FFFFFF;text-decoration: none;}
### Klasse für TopNav ###
a.top:link {font-size: 10px;color: #FFFFFF;font-weight: bolder;text-decoration: none;}
a.top:visited {font-size: 10px;font-weight: bolder;color: #FFFFFF;text-decoration: none;}
a.top:hover {font-size: 10px;font-weight: bolder;color: #00C0FF;text-decoration: none;}
a.top:active {font-size: 10px;font-weight: bolder;color: #0060FF;text-decoration: none;}
Hallo!
Ich habe in der CSS-Datei zwei Klassen für den A Tag definiert: menu und menuact
Beim menuact hatte ich jedoch den Fehler, dass ich die Link Eigenschaft falsch geschrieben hatte. Dadurch wurden diese Formatierungen beim Laden nicht gefunden. Wenn man jedoch auf den Link einmal klickt, werden ja die visited Eigenschaften genommen, daher funktionierte alles wieder.
Vorher hatte ich die link Eigenschaft so definiert:
a.menuact: link
Zwischen dem : und link darf jedoch kein Leerzeichen stehen.
So ists richtig:
a.menuact:link
Meine CSS-Datei:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
color: #999999;
}
a.menu:link, a.menu:active, a.menu:visited {
color: #C8BDD4;
text-decoration: none;
font-weight: bold;
}
a.menu:hover {
color: #DA221E;
text-decoration: underline;
font-weight: bold;
}
a.menuact:link, a.menuact:active, a.menuact:visited, a.menuact:hover {
color: #DA221E;
text-decoration: none;
font-weight: bold;
}
Ich habe mir dein Stylesheet durchgesehen, habe aber keinen Fehler gefunden. Aber ich muss dazusagen, dass ich nicht so wirklich fundierte Kenntnisse über DSS besitze, so dass ich leicht einen Fehler übersehen kann.
Tut mir leid, wenn ich dir nicht weiterhelfen kann!
Probier einmal die CSS-Datei mit irgendeinem Tool zu erzeugen, dann müsste es funktionieren!
mfg hounsta