Joomla! Forum Schweiz wird Teil der D-A-CH Community

Nach vielen Jahren als zentrale Anlaufstelle für Fragen rund um Joomla! in der Schweiz wird das Joomla! Forum Schweiz künftig als Archiv weitergeführt.

Die Joomla!-Communities aus Deutschland, Österreich und der Schweiz arbeiten heute enger denn je zusammen. Deshalb bündeln wir künftig auch den deutschsprachigen Support und Austausch an einem gemeinsamen Ort im Joomla! D-A-CH Forum.

Für neue Fragen, Diskussionen und den Austausch mit der Community nutzt bitte ab sofort:

forum.joomla.de

Das Joomla! Forum Schweiz bleibt weiterhin bestehen und wird als Archiv im Lesemodus erhalten. Die vielen Beiträge, Lösungen und Erfahrungen aus den vergangenen Jahren bleiben damit weiterhin zugänglich und über die Suche auffindbar.

Wir bedanken uns herzlich bei allen Mitgliedern, Moderatoren und Helfern, die das Schweizer Joomla! Forum über viele Jahre mit ihrem Wissen und ihrem Engagement geprägt haben.

Wir sehen uns im Joomla! D-A-CH Forum!

Superfish-Modul Submenü im aktiven Menü ohne hover-Effekt

  • Punisher77800
  • Autor
  • Neues Mitglied
  • Neues Mitglied
Mehr
10 Juli 2009 14:54 #22420 von Punisher77800
Hallo zusammen

ich arbeite mich nun schon seit Tagen durch etliche Foren, Tutoriale etc. aber komme einfach nicht weiter:

--ALTER LINK WURDE ENTFERNT--

Gleich zu meinem Problem:
Wenn man einen Hauptmenüpunkt auswählt z.B. "Umgebungen" wird dieser (wie gewünscht) markiert (anderer Hintergrund), bewegt man sich jetzt mit der Maus durch dessen Untermenü sieht man aber keinen hover-Effekt mehr (wie im restlichen Menü). Ich habe die superfish.css und die template_css.css modifiziert, um das Menü zu verändern.

Falls ihr Firebug nicht habt, hier die codes:

superfish.css:
Code:
/*** ESSENTIAL STYLES ***/ .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; } .sf-menu { line-height: 1.0; } .sf-menu ul { position: absolute; top: -999em; width: 10em; /* left offset of submenus need to match (see below) */ } .sf-menu ul li { width: 100%; } .sf-menu li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } .sf-menu li { float: left; position: relative; } .sf-menu a { display: block; position: relative; } .sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; top: 3.25em; /* match top ul list item height */ z-index: 99; } ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul { top: -999em; } ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul { left: 10em; /* match ul width */ top: 0; } ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em; } ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul { left: 10em; /* match ul width */ top: 0; } /*** DEMO SKIN ***/ .sf-menu { float: left; margin-bottom: 1em; } .sf-menu a { border-left: 1px solid #fff; border-top: 1px solid #CFDEFF; padding: .75em 1em; text-decoration:none; } .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/ color: #ffffff; } .sf-menu li { background: #000000; background-image:url("../images/menu-hintergrund.png"); } .sf-menu li li { background: #AABDE6; } .sf-menu li li li { background: #9AAEDB; } .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { background-image:url("../images/menu-hintergrund-active.png"); outline: 0; } .sf-menu li:hover > a, .sf-menu li.sfHover > a { color: #ffff00; } .sf-menu li .separator { display: block; border-left: 1px solid #fff; border-top: 1px solid #CFDEFF; padding: .75em 1em; text-decoration:none; } /*** arrows **/ .sf-menu a.sf-with-ul { padding-right: 2.25em; min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ } .sf-sub-indicator { position: absolute; display: block; right: .75em; top: 1.05em; /* IE6 only */ width: 10px; height: 10px; text-indent: -999em; overflow: hidden; background: url('../images/arrows-ffffff.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */ } a > .sf-sub-indicator { /* give all except IE6 the correct values */ top: .8em; background-position: 0 -100px; /* use translucent arrow for modern browsers*/ } /* apply hovers to modern browsers */ a:focus > .sf-sub-indicator, a:hover > .sf-sub-indicator, a:active > .sf-sub-indicator, li:hover > a > .sf-sub-indicator, li.sfHover > a > .sf-sub-indicator { background-position: -10px -100px; /* arrow hovers for modern browsers*/ } /* point right for anchors in subs */ .sf-menu ul .sf-sub-indicator { background-position: -10px 0; } .sf-menu ul a > .sf-sub-indicator { background-position: 0 0; } /* apply hovers to modern browsers */ .sf-menu ul a:focus > .sf-sub-indicator, .sf-menu ul a:hover > .sf-sub-indicator, .sf-menu ul a:active > .sf-sub-indicator, .sf-menu ul li:hover > a > .sf-sub-indicator, .sf-menu ul li.sfHover > a > .sf-sub-indicator { background-position: -10px 0; /* arrow hovers for modern browsers*/ } /*** shadows for all but IE6 ***/ .sf-shadow ul { background: url('../images/shadow.png') no-repeat bottom right; padding: 0 8px 9px 0; -moz-border-radius-bottomleft: 17px; -moz-border-radius-topright: 17px; -webkit-border-top-right-radius: 17px; -webkit-border-bottom-left-radius: 17px; } .sf-shadow ul.sf-shadow-off { background: transparent; } .sf-menu .active { background: #ccc; } .sf-menu #current { background: #aaa; } .superfish_clear { clear: both !important; height: 1px !important; overflow: hidden !important; font-size: 1px !important; margin: 0 !important; padding: 0 !important; }

template_css.css
Code:
/* @group Horizontal Menu */ #horiz-menu { height: 39px; background: url(../images/menu-bg.png) 0 0 repeat-x; } #horiz-menu ul.menu { padding-left: 1px; } #horiz-menu ul { list-style: none; margin: 0; padding: 0 0 0 0px; } #horiz-menu li { display: block; float: left; margin: 0; padding: 0; } #horiz-menu a { white-space: nowrap; font-family: Arial black; display: block; float: left; height: 39px; line-height: 42px; padding: 0 21px 0 14px; font-weight: bold; font-size: 1em; color: #ffffff; } #horiz-menu li:hover a, #horiz-menu li.sfHover a, #horiz-menu li:hover a:hover { color: #ffffff; } #horiz-menu ul ul { background: #000000; background-image:url("../images/menu-hintergrund.png"); opacity: 0.99; border-left: 1px solid #f7f7f7; border-right: 1px solid #B9B9B9; } #horiz-menu li li { background: none; border-top: 1px solid #f7f7f7; border-bottom: 1px solid #B9B9B9; } #horiz-menu li li a:hover { color: #ffffff; } #horiz-menu li.active, #horiz-menu li.active_menu { color:#ffffff; background: url(../images/menu-active-r.png) 100% 0 no-repeat; } #horiz-menu li.active a, #horiz-menu li.active_menu a { background: url(../images/menu-active-l.png) 0 0 no-repeat; } #horiz-menu span.topdaddy, #horiz-menu span.top { display: block; float: left; position: relative; text-align: center; } #horiz-menu li li span.top { display: inline; float: none; position: static; text-align: left; } #horiz-menu span.topdaddy span { text-align: left; } #horiz-menu span.selector { display: block; position: absolute; overflow: hidden; bottom: 5px; left: 50%; margin: 0 auto; margin-left: -30px; height: 3px; width: 59px; background: none; } #horiz-menu li.active span span.selector, #horiz-menu li:hover span span.selector, #horiz-menu li.sfHover span span.selector { background: url(../images/menu-accent.png) 0 0 no-repeat; } span.selector br { display: none; } #horiz-menu li li a.daddy, #horiz-menu li.active li a.daddy, #horiz-menu li.active li a.daddy:hover, #horiz-menu li li a.daddy:hover { background: url(../images/dropdown-child.png) 95% 50% no-repeat; } #horiz-menu li.active li span span.selector, #horiz-menu li:hover li span span.selector, #horiz-menu li.sfHover li span span.selector { display: none; } #horiz-menu li.active a, #horiz-menu li.active_menu a{ line-height: 33px; } #horiz-menu li.active li a { color: #ffffff; } #horiz-menu li li.active, #horiz-menu li.active li a, #horiz-menu li.active li a:hover { background: none; } #horiz-menu li li a { font-family: Arial black; font-size: 1em; font-weight: normal; } #horiz-menu a:hover { text-decoration: none; } /* @end */ /* @group Sub Menu */ ul.menuside { margin: 0; padding: 0; } ul.menuside li { list-style: none; margin: 0; padding: 0; } ul.menuside a:hover { text-decoration: none; } ul.menuside li.active li a { font-weight: normal; } ul.menuside span { display: block; } ul.menuside a { display: block; line-height: 25px; text-indent: 30px; height: 25px; font-family: Century Gothic, Arial, sans-serif; font-size: 110%; } ul.menuside a:hover { text-decoration: none; } ul.menuside ul { margin-left: 20px; padding: 0; } ul.menuside ul ul { padding: 0; margin-left: 30px; } ul.menuside li li { padding: 0; margin: 0; } ul.menuside li li a { padding-left: 23px; } ul.menuside ul a { text-indent: 0; color: #444; } ul.menuside li.active li a { color: #444; background-color: #ccc; } ul.menuside ul ul ul a { text-indent: 30px; } /* @end */ /* @group Mainmenu */ a.mainlevel { display: block; line-height: 25px; text-indent: 28px; height: 25px; font-family: Century Gothic, Arial, sans-serif; font-size: 110%; text-decoration: none; } a#active_menu.sublevel { background: none; } ul.menuside a, a.mainlevel { background: #888 url(../images/bullet.png) 0 0 no-repeat; color: #444; } ul.menuside ul a { background: #888 url(../images/triangle.png) 0 5px; } a.sublevel { padding-left: 15px; text-decoration: none; line-height: 20px; font-family: Century Gothic, Arial, sans-serif; color: #444; background: none; } a.mainlevel:hover, a.sublevel:hover { text-decoration: none; } /* @end */ /


Um Hilfe wäre ich wahnsinnig froh, weil ich jetzt nicht weiss, ob ich etwas an der HTML, JS oder CSS ändern muss.

Vielend Dank für jede Hilfe!!
  • Punisher77800
  • Autor
  • Neues Mitglied
  • Neues Mitglied
Mehr
12 Juli 2009 11:12 #22434 von Punisher77800
Nachtrag: In einem anderen Forum wurde mir geholfen und zwar musste ich in der Datei "helper.php" im Ordner mod_superfishmenu auf Zeile 100 und 111 den Wert der pathLevels höher setzen.

In meinem Fall steht da nun


Zeile 100:
Code:
'pathLevels' => $params->get('pathLevels', '5'),

Zeile 111:
Code:
if($params->get('menu_style') != 'navbar') $superfish_options['pathLevels']=5;

Der Thread kann geclosed werden..
  • sandwich
  • Neues Mitglied
  • Neues Mitglied
Mehr
12 Nov. 2010 21:09 #27472 von sandwich
hallo fangemeinde
ich habe das joomla menu-modul mit aufklappbarem untermenu erstellt und den bei den menu-einträgen auf der obersten stufe diese auf die erste unterstufe gelinkt, wenn dann eine vorhanden war. leider wird dann der aktive oder selected wert nicht mitgegeben und man muss nochmals auf den ersten untereintrag klicken, damit dieser übernommen wird.

wie stelle ich es an, dass das untermenu weiss, dass es über den haupteintrag angewählt wurde und so aktiv wird..? die parent-class funktioniert..

danke für eure hilfe.
sandwich
Moderatoren: Tribal6RePaoDragonlordChris Hoefligerpascaleadiheutschi.ch
Powered by Kunena Forum

Joomla! Verband Schweiz - Mitglied werden