Re: Ausfahrbare Navigation im IE6
Posted: Fri Sep 14, 2007 1:48 pm
Ähmm, hatten wir das Thema nicht schon mal geklärt?
Verpass dem einleitenden div mal die ID primary-nav.
Verpass dem einleitenden div mal die ID primary-nav.
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Na klar doch - mit den {literal}{/literal} tags maskiert.Lightstoner wrote: Sollte ich im Head-Bereich das Javascript einbinden, welches im anderen Thread angegeben wurde?
Wenn du dir wie vorgeschlagen die Zeilen 7-9 der CSSMenu.js anschaust, findest du die Antwort fast von selbstBezieht sich das Javasript auf die oben genannte ID?
Code: Select all
// The variables
var cssid = "primary-nav"; // CSS ID for the menuwrapper
var menuadd = "h"; // Character to be added to the specific classes upon hovering. So for example, if this is set to "h", class "menuparent" will become "menuparenth" when hovered over.
var menuh = "menuh"; // Classname for hovering over all other menu items
Füg das folgende im Stylesheet ein:Lightstoner wrote: Allerdings werden jetzt die Navipunkte mit 2: Aktuell, 3:Verein 3.1: Vereinsgeschichte u.s.w. aufgelistet. Ich möchte aber nur den Namen ohne die Nr. Ka was ich da im Template ändern soll.
Code: Select all
dfn {
position: absolute;
left: -1000px;
top: -1000px;
width: 0;
height: 0;
overflow: hidden;
display: inline;
}
Mit welcher CMSms Version arbeitest du? Verwendest du noch das originale CSSmenu.tpl Template des MenüManagers?Die Navigation fährt allerdings im IE6 immer noch nicht aus.
Code: Select all
<div id="sidebar">
<h2 class="accessibility">Navigation</h2>
{menu template='cssmenu.tpl'}
<hr class="accessibility" />
</div>
Ist die in der Standard-Installation von CMSms gewählte Variante (Barrierefreiheit!). Natürlich könntest du auch im Template des MenuManagers die dfn Passage entfernen.Lightstoner wrote: Finds zwar nicht sehr sauber die Zahlen einfach ausserhalb des Bildschirms zu platzieren.
Schmeiss mal testhalber deinen kompletten Navigationspart aus den Stylesheets raus und ersetz ihn durch den "originalen" aus der Standardinstallation.Tut sich aber immer noch nichts. Am Menutemplate hab ich nichts gemacht.
Wenn du es erst einmal hinbekommen hast, ist das zweite Mal doch ein KlacksIch werde wohl in Zukunft keine ausfahrbaren Navis mehr machen
Klar doch - häng ich hier dran.Lightstoner wrote: Kannst du mir das posten?
Upps, wo hast du denn die Forenregel gefunden? Ist mir glatt entfallenweil es auch nicht üblich ist, direkt zu helfen.^^
Funzt!Lightstoner wrote: kann mal einer von euch die Seite testen mit dem IE6?
Ähmm, und was meinst du, was ich hier die ganze Zeit versucheLightstoner wrote: Für prof. Support bin ich gerne bereit etwas zu zahlen.^^
Endlich mal ein Grund, die IE Developer Toolbar zu testen. Das ist die . Vermutlich fehlt dir dazu noch das passende Stylesheet:In den IEs (und nur in den IEs) ragen oben rechts 2 Linien aus der Navi vor.
Code: Select all
.accessibility, hr {
position: absolute;
top: -999em;
left: -999em;
}
Nur deswegen bin ich hierLightstoner wrote: macht einfach spass,
Code: Select all
/* Horizontal menu for the CMS CSS Menu Module */
/* by Alexander Endresen */
#menu_vert {
margin-left: 1px;
margin-right: 1px;
}
/* The wrapper clears the floating elements of the menu */
/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper {
/* Fix for Opera 8 */
/* overflow: hidden; */
background-color: #ECECEC;
border-bottom: 1px solid #C0C0C0;
width: 100%;
}
/* Set the width of the menu elements at second level. Leaving first level flexible. */
#primary-nav li li {
width: 200px;
}
/* Unless you know what you do, do not touch this */
#primary-nav, #primary-nav ul {
list-style: none;
margin: 0px;
padding: 0px;
}
#primary-nav ul {
position: absolute;
top: auto;
display: none;
}
#primary-nav ul ul {
margin-top: 1px;
margin-left: -1px;
left: 100%;
top: 0px;
}
#primary-nav li {
margin-left: -1px;
float: left;
}
#primary-nav li li {
margin-left: 0px;
margin-top: -1px;
float: none;
position: relative;
}
/* Styling the basic apperance of the menu elements */
#primary-nav a {
display: block;
margin: 0px;
padding: 5px 10px;
text-decoration: none;
color: #006699;
}
#primary-nav li a {
border-right: 1px solid #C0C0C0;
border-left: 1px solid #C0C0C0;
}
#primary-nav li li a {
border: 1px solid #C0C0C0;
}
#primary-nav li, #primary-nav li.menuparent {
background-color: #ececec;
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li.menuactive {
background-color: #C7C7C7;
}
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav ul li.menuparent,
#primary-nav ul li.menuparent:hover,
#primary-nav ul li.menuparenth {
/* arrow for menuparents */
background-image: url(images/cms/arrow.gif);
background-position: center right;
background-repeat: no-repeat;
}
/* Styling the apperance of menu items on hover */
#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
background-color: #E7AB0B;
}
/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */
/*
just add
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul ul ul,
for fourth level
*/
#primary-nav ul,
#primary-nav li:hover ul,
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul,
#primary-nav li.menuparenth ul ul {
display: none;
}
/* add
#primary-nav ul ul ul li:hover ul,
#primary-nav ul ul ul li.menuparenth ul,
for fourth level
*/
#primary-nav li:hover ul,
#primary-nav ul li:hover ul,
#primary-nav ul ul li:hover ul,
#primary-nav li.menuparenth ul,
#primary-nav ul li.menuparenth ul,
#primary-nav ul ul li.menuparenth ul {
display: block;
}
/* IE Hacks */
#primary-nav li li {
float: left;
clear: both;
}
#primary-nav li li a {
height: 1%;
}