[Beispiel] ypMenu ( GMENU horizontal , ypSlideOutMenus )

  • n-joy n-joy
    R2-D2
    0 x
    65 Beiträge
    0 Hilfreiche Beiträge
    25. 01. 2005, 17:33

    Tach allerseits :)

    ich habe mir mal die Mühe gemacht (..sieh an ..sieh an ;) ) und zum ypMenu ein relativ umfangreiches Beispiel erstellt. Dieses soll euch helfen das ypMenu schnell und ohne viel Zeitaufwand zum laufen zu bringen...

    aus optischen Gründen habe ich das Beispiel erstmal im HTML-Format erstellt:
    http://steinhauer-gmbh.net/_tmp/ypMenu/

    ...im Laufe der Zeit werde ich mein Posting erweitern (editieren)

    - Verbesserungsvorschläge erwünscht
    - bei Problemen oder wenn nicht verständlich, fragen :)

    [quote:dcd9872421]
    [b:dcd9872421]ypMenu (ypSlideOutMenu) in Typo3[/b:dcd9872421]

    Dateien (copyright haben die jeweiligen Autoren):
    - [url=http://steinhauer-gmbh.net/_tmp/ypMenu/ypMenu-php.zip]ypMenu.php [/url]( [i:dcd9872421]per includeLibs in Typo3 einbinden[/i:dcd9872421] )
    - [url=http://steinhauer-gmbh.net/_tmp/ypMenu/ypSlideOutMenus-js.zip]ypSlideOutMenus.js[/url] ( [i:dcd9872421]im header laden[/i:dcd9872421] )
    - [url=http://steinhauer-gmbh.net/_tmp/ypMenu/ypMenu-css.zip]ypMenu.css[/url] ( [i:dcd9872421]in eure CSS-datei übernehmen oder im header mitladen[/i:dcd9872421] )

    [code:1:dcd9872421]
    [b]Typo3: externes Template ( temp.ypMenu ) -> Setup[/b]

    config.no_cache = 1
    page.includeLibs.ypMenu = fileadmin/scripts/ypMenu/ypMenu.php
    page.headerData.11 = TEXT
    page.headerData.11.value = <script type="text/javascript" src="fileadmin/scripts/ypMenu/ypSlideOutMenus.js" language="JavaScript"></script> temp.ypMenu.special = directory
    # 57 ist die ID der root-page - siehe screenshot
    temp.ypMenu.special.value = 57
    temp.ypMenu = HMENU
    temp.ypMenu {
    1 = GMENU
    1 {
    IProcFunc = user_menu->firstLevel
    expAll = 1
    wrap = |
    NO = 1
    NO {
    wrap = |
    XY = [50.w]+20, 31
    30 = IMAGE
    30.file = fileadmin/scripts/ypMenu/menu_bg2.gif
    50 = TEXT
    50 {
    text.field = title
    fontSize = 10
    fontFile = fileadmin/templates/fonts/verdana.ttf
    fontColor = #222222
    offset = 10,20
    niceText = 0
    transparentBackground = 1
    }
    100 = || IMAGE
    100.file = fileadmin/scripts/ypMenu/menu_space.gif
    }

    IFSUB < temp.ypMenu.1.NO
    IFSUB = 1

    RO < temp.ypMenu.1.NO
    RO = 1
    RO {
    backColor = #DDDDDD
    30 >
    }

    IFSUBRO < temp.ypMenu.1.NO
    IFSUBRO = 1
    IFSUBRO {
    backColor = #DDDDDD
    30 >
    }
    }

    2 = TMENU
    2 {
    IProcFunc = user_menu->secondLevel
    expAll = 1
    NO.linkWrap = <li>|</li>
    }

    3 = TMENU
    3 {
    IProcFunc = user_menu->thirdLevel
    expAll = 1
    NO.linkWrap = <li>|</li>
    }

    4 = TMENU
    4 {
    IProcFunc = user_menu->fourthLevel
    expAll = 1
    NO.linkWrap = <li>|</li>
    }
    }

    temp.user_menu = USER
    temp.user_menu.userFunc = user_menu->menuEnd
    [/code:1:dcd9872421]
    Ich habe vieles - wie auch das ypMenu - aus meinem MainTemplate in externe Templates ausgelagert, damits im MainTemplate übersichtlich bleibt! Deshalb kommt auch nur wenig TS in das MainTemplate(externes Template einbinden)
    [code:1:dcd9872421]
    [b]Typo3: MainTemplate der root-page -> Setup[/b]

    page = PAGE
    page.typeNum = 0
    page.stylesheet = fileadmin/templates/style2/class.css
    page.10 = TEMPLATE
    page.10{
    template = FILE
    template.file = fileadmin/templates/style2/template.htm
    workOnSubpart = DOKUMENT

    marks.MENU = COA
    marks.MENU {
    10 < temp.ypMenu
    20 < temp.user_menu
    }
    }
    [/code:1:dcd9872421]
    Das dazugehörige XHTML-template ist natürlich nur als Beispiel/Vorlage gedacht!
    [code:1:dcd9872421]
    [b]HTML-template ( fileadmin/templates/style2/template.htm )[/b]

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    <!-- ###DOKUMENT###-->
    <div id="cRoot">
    <div id="cBanner"></div>
    <div id="cHeader"></div>
    <div id="cMenu">###MENU###</div>
    <div id="cPfad"></div>
    <div id="cInhalt">###INHALT###</div>
    <div id="cFunktion"></div>
    <div style="clear:both;height:1px;overflow:hidden;"></div>
    <div id="cFooter"></div>
    </div>
    <!-- ###DOKUMENT### -->
    </body>
    </html>
    [/code:1:dcd9872421]
    Im CSS-Teil kann man im grunde >alles< dem eigenen design anpassen, ich habe aber erstmal nur die relevantesten eigenschaften blau markiert. Ausserdem ist die class "cMenu" nur ein Beispiel für einen DIV-container in dem der MENU-marker steht.
    [code:1:dcd9872421]
    [b]CSS-code ( fileadmin/templates/style2/class.css ) für das ypMenu und für den DIV mit der ID cMenu[/b]

    #cMenu {
    height:31px;
    width: 708px;
    margin-left:1px;
    margin-bottom:1px;
    background: #FFFFFF url(menu_bg.gif) repeat-x top left;
    position:relative; /* wichtige angabe, sonst taucht das slideMenu an falscher Position auf */
    }

    /*
    ###################
    # ypMenu Styles #
    ###################
    */
    .mmContent {
    /* nrmale schrift definieren */
    font-size: 12px; font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    }

    .mmContent ul {
    margin: 0px; padding: 0px;
    list-style: none;
    z-index:2;
    position:relative;
    left:0px; top:0px;
    }
    .mmContent li {
    padding: 0px; margin: 0px;
    }

    .menuBackground {
    position:absolute;
    left:0px; top:0px;
    z-index:1;
    }

    .mmContent li a {
    /* Links bzw. die slideMenü-Elemente definieren */
    display: block;
    color: #222222;
    font-weight:normal;
    font-size: 12px;
    font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    width: 150px;
    padding: 5px;
    text-decoration: none;
    border-bottom: solid 1px #CCCCCC; /* der rand zwischen den MenüElementen */
    }

    * html .mmContent li a {
    width: 160px;
    width: 160px;
    }

    /* */
    .mmContent li a:link { background: #EAED65; color: #222222; font-size: 12px; }
    .mmContent li a:visited { background: #EAED65; color: #222222; font-size: 12px; }

    .mmContent li a:hover{ background: #FFFF99; color: #222222; font-size: 12px; }
    .mmContent li a:active { background: #EAED65; color: #222222; font-size: 12px; }

    .mmContent li a.submenu {
    background: #EAED65 url(fileadmin/scripts/ypMenu/pfeil.gif) no-repeat right center; }
    .mmContent li a.submenu:hover {
    background: #FFFF99 url(fileadmin/scripts/ypMenu/pfeil.gif) no-repeat right center; }

    /*
    ##########################################
    # ypMenu Styles for our belove IE 5.01 #
    ##########################################
    */

    .mmContentb {
    font-size: 12px; font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    }

    .mmContentb ul {
    margin: 0px; padding: 0px;
    list-style: none;
    z-index:2;
    position:relative;
    left:0px; top:0px;
    }
    .mmContentb li {
    padding: 0px; margin: 0px;
    }

    .menuBackground {
    position:absolute;
    left:0px; top:0px;
    z-index:1;
    }

    .mmContentb li a {
    /* Links bzw. die slideMenü-Elemente definieren */
    display: block;
    width: 150px;
    padding: 5px;
    color: #222222;
    font-weight: normal;
    font-size: 12px;
    font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    text-decoration: none;
    border-bottom: solid 1px #CCCCCC; /* der rand zwischen den MenüElementen */
    }

    * html .mmContentb li a {
    width: 160px;
    width: 160px;
    }

    .mmContentb li a:link { background: #EAED65; color: #222222;}
    .mmContentb li a:visited { background: #EAED65; color: #222222;}

    .mmContentb li a:hover{ background: #FFFF99; color: #222222;}
    .mmContentb li a:active { background: #EAED65; color: #222222;}

    .mmContentb li a.submenu {
    background: #EAED65 url(fileadmin/scripts/ypMenu/pfeil.gif) no-repeat right center;
    font-size: 12px;
    }
    .mmContentb li a.submenu:hover {
    background: #FFFF99 url(fileadmin/scripts/ypMenu/pfeil.gif) no-repeat right center;
    font-size: 12px;
    }
    [/code:1:dcd9872421]
    In der ypMenu.php wird man noch ein paar kleinigkeiten anpassen müssen...
    [code:1:dcd9872421]
    [b]ypMenu.php anpassen...[/b]

    var $offsetY = 31; // vertikale fixierung des slideMenu's - relativ zum gecenterten DIV oder TD
    var $offsetX = 0; // horizontale fixierung des slideMenu's - relativ zum gecenterten DIV oder TD
    var $sublevelWidth = 160; // breite des sublevel elements
    var $sublevelHeight = 25; // höhe des sublevel elements

    var $padding = 5; // padding-abstand rechts und links
    var $fontSize = 11; // schriftgröße
    var $breakpoint = 14; // bricht Zeile nach X(14) Zeichen um
    var $secPadding = 16; // padding-abstand oben und unten

    var $fontFile = 'fileadmin/templates/fonts/verdana.ttf'; // font-datei wird fürs berechnen des zeilenumbruchs benötigt
    var $transBg = 'fileadmin/scripts/ypMenu/menu_bg.png'; // transparente PNG datei, behebt transparenz-fehler beim Mac IE 5 und Opera - die PNG-Transparenz sollte die gleiche sein wie die der CSS-FILTER-eigenschaft: alpha(opacity)
    [/code:1:dcd9872421]

    [/quote:dcd9872421]

    MfG

    [i:dcd9872421]p.s. ypMenu kommt von Ersteller der http://www.meade.de[/i:dcd9872421]


  • charly83 charly83
    T3PO
    0 x
    28 Beiträge
    0 Hilfreiche Beiträge
    30. 01. 2006, 11:30

    @WeVo

    Bei mir hat es folgendes Problem gehabt.
    Typo hat im externen Template kein js geladen. Jetzt hab ich das ganze ins main Template eingebunden und es funktioniert wunderbar.

    Mit freundlichen Grüßen
    Thomas

  • marsian marsian
    Padawan
    0 x
    58 Beiträge
    0 Hilfreiche Beiträge
    05. 02. 2006, 15:32

    Hallo allseits

    ich suche dringend die Dateien für das horizontale ypMenu. Die Links am Anfang dieses Threads sind leider tot und ich finde leider nur die Dateien für das vertikale ypMenu (Diese umzubauen ist leider auch nicht so einfach).

    Kann mir jemand einen funktionierenden Link angeben?

    Gruss Simon

  • marsian marsian
    Padawan
    0 x
    58 Beiträge
    0 Hilfreiche Beiträge
    05. 02. 2006, 17:05

    Habs nun geschafft das ypMenu auf horizontal zu stellen.

    Falls jemand die Dadeien benötigt kann er hier posten.

    Gruss Simon

  • Strichmaennli Strichmae...
    Padawan
    0 x
    36 Beiträge
    0 Hilfreiche Beiträge
    06. 02. 2006, 19:46

    hallo marsian

    Kannst Du mir sagen, wie du es horizontal hinbekommen hast, dass auch die Untermenüs horizontal aufgelistet sind?

    siehe folgendes menü. hier fehlt noch irgendetwas

    [url]http://rpc.strichmaennli.ch/[/url]

    thanks

  • marsian marsian
    Padawan
    0 x
    58 Beiträge
    0 Hilfreiche Beiträge
    09. 02. 2006, 18:27

    @ Strichmännli

    Ich meinte etwas anders.

    Ich hatte nur Dateien für das YPMenu welches vertikal angeordnet ist. Der Link für das horzintale Menu funzt leider nicht mehr.

    Nun habe ich die php-Datei des vertikalen Menus mit dem Code im ersten Thread über das YPMenu abgeglichen und es funktioniert.

    Leider kann ich Dir nicht weiterhelfen. Mir fehlt da einfach die Zeit. Das ganze sollte aber in der php-Datei zu machen sein.

    Sorry das ich nicht weiterhelfen kann.

  • Yannis Yannis
    T3PO
    0 x
    30 Beiträge
    0 Hilfreiche Beiträge
    12. 02. 2006, 16:45

    Ich habe das Problem mit dem IE gelöst:

    Benennt den DIV-Container in dem die Menu-Zeile liegt in [HTML]<div id="MenuNavigation"></div>[/HTML] um, dann sollte das Menu auch im IE funktionieren.
    Bei mir hieß der Container vorher nur "menu", aber jetzt gehts!
    Ich weiß aber nicht, was das soll.

    Viel Glück,
    der Yannis

  • WeVo WeVo
    Jedi-Meister
    0 x
    293 Beiträge
    0 Hilfreiche Beiträge
    07. 03. 2006, 22:37

    Ich versteh es einfach nicht!
    Ich bekomm es einfach nicht hin! nachdem ich den letzten Thread gelesen habe ist mir auch aufgefallen, dass ich garkeine div's eingesetzt habe. Als ich jetzt allergdings versucht habe die Zelle mit nem div tag zu umranden, passiert eigentlich nicht viel, bis darauf, dass eine weiße Fälche in der Zelle erscheint[url]http://www.zffh.de/index.php[/url]. Aber weiter komm ich auch nicht. Ich habe versucht das Menü in mein CMS einzubinden und hocke jetzt schon mehrere Wochen an diesem Sch.....aber es tut sich einfach nichts! Ich habe ganz normal das Template erstellt und in mein Haputtemplate eingebunden. Aber es passiert einfach nichts!!! Die ID der Rootpage habe ich auch abgeändert aber es hilft alles nichts! #angry# #evil#
    Hat nicht jemand noch für mich einen Lösungsansatz oder ein Tutorial für D....? ;)

    Vielen Dank!

    Markus

  • charly83 charly83
    T3PO
    0 x
    28 Beiträge
    0 Hilfreiche Beiträge
    12. 03. 2006, 11:40

    Hallo

    Mein Menü hat daheim am Rechner schon einwandfrei funktionert.
    Nun habe ich alles auf den Server gestellt und jetzt werden keine Unterpunkte mehr angezeicht bzw. kein SlideOut. Die erste Menüebene wird einwandfei dargestellt.
    Verwende Typo 3.8.1

    Hat jemand eine Idee an was das liegen kann?
    Danke im Voraus!
    Mfg
    Thomas

  • arrow arrow
    Padawan
    0 x
    56 Beiträge
    0 Hilfreiche Beiträge
    28. 03. 2006, 13:49

    Also ich habs mal schnell auf meinem Backupserver nach gebaut und hab eigentlich keinerlei Probleme mit dem Menü gehabt. Ich schicke euch mal alles was ihr benötigt meiner Meinung nach ;). Ein Problem gibts dabei allerdings noch wobei ich evtl. erfahrene Hilfe benötigen würde. Die Positionierung der subLevels funktioniert nur Teilweise. Wenn im Menü selbst Wörter mit Umbruch zu Tage kommen zerreisst er meine Positionierung seht am besten selbst: [url]http://85.214.32.188/index.php?id=121[/url]

    Die Horizontale Variante:

    Das TS ins Maintemplate integrieren bzw. komplett übernehmen (ist nen bischen wirr dadrin da es auszüge ausm Backupserver sind).

    1. page = PAGE
    2. page.bodyTag = <body bgcolor="#CCCCCC" topmargin="0">
    3. page.typeNum = 0
    4. page.stylesheet = fileadmin/templates/style2/class.css
    5. page.10 = TEMPLATE
    6. page.10{
    7. template = FILE
    8. template.file = fileadmin/vorlage_con_sol.html
    9. workOnSubpart = DOKUMENT
    10.  
    11. marks.INHALT = CONTENT
    12. marks.INHALT {
    13. table = tt_content
    14. select.orderBy = sorting
    15. select.where = colPos = 0
    16. select.languageField = sys_language_uid
    17. }
    18.  
    19. marks.MENU = COA
    20. marks.MENU {
    21. 10 < temp.ypMenu
    22. 20 < temp.user_menu
    23. }
    24.  
    25. marks.KLICKPFAD = HMENU
    26. marks.KLICKPFAD {
    27. special = rootline
    28. special.range = 2 | 1
    29. 1 = TMENU
    30. 1.NO = 1
    31. 1.NO.linkWrap = &nbsp; &nbsp; &#124; |*| &nbsp; -> &nbsp; &#124; |*| &nbsp; ->
    32. }
    33.  
    34. marks.MENU_UNTEN = HMENU
    35. marks.MENU_UNTEN {
    36. special = directory
    37. special.value = 124
    38. 1 = TMENU
    39. 1.NO = 1
    40. 1.NO.linkWrap = &nbsp;|&nbsp;&#124;|*|&nbsp;|&nbsp;&#124;|*|&nbsp;|
    41. }
    42.  
    43. marks.BUTTON = HMENU
    44. marks.BUTTON.special = browse
    45. marks.BUTTON.entryLevel=1
    46. marks.BUTTON.special{
    47. items = prev | next
    48. items.prevnextToSection = 1
    49. prev.fields.title = « zurück
    50. next.fields.title = vor »
    51. }
    52.  
    53. marks.BUTTON.1 = TMENU
    54. marks.BUTTON.1.NO {
    55. linkWrap = &nbsp;|&nbsp;
    56. }
    57.  
    58. marks.DRUCKVERSION = TEXT
    59. marks.DRUCKVERSION {
    60. field = uid
    61. wrap = <!!=.?=|==>Druckversion</a>
    62. }
    63.  
    64. }
    65.  
    66. #Druckansicht
    67. druckversion = PAGE
    68. druckversion {
    69. typeNum = 1
    70. 10 = CONTENT
    71. 10.table = tt_content
    72. 10.select.orderBy = sorting
    73. 10.select.colPos = 0
    74.  
    75. #druckversion.stylesheet = fileadmin/druck.css
    76. druckversion.10 = TEMPLATE
    77. druckversion.10 {
    78. template = FILE
    79. template.file = fileadmin/druckansicht.html
    80. marks.INHALT = CONTENT
    81. }
    82. }
    83.  
    84. config.extTarget = _self

    Das ist mein Externes Template. Dieses Template liegt in einem SysFolder. Man bindet es ein in dem Man unter Template->auf "click here to edit whole template record" klickert-> dann auf include basis template das template einbinden.

    1. config.no_cache = 1
    2. page.includeLibs.ypMenu = fileadmin/scripts/ypMenu/ypMenu.ini
    3. page.headerData.11 = TEXT
    4. page.headerData.11.value = <script type="text/javascript" src="fileadmin/scripts/ypMenu/ypSlideOutMenus.js" language="JavaScript"></script>
    5. temp.ypMenu.special = directory
    6. temp.ypMenu.special.value = 119
    7. temp.ypMenu.entryLevel = 0
    8. temp.ypMenu = HMENU
    9. temp.ypMenu {
    10. 1 = GMENU
    11. 1 {
    12. IProcFunc = user_menu->firstLevel
    13. expAll = 1
    14. wrap = |
    15. NO = 1
    16. NO {
    17. wrap = |
    18.  
    19. XY = [50.w]+20, 31
    20.  
    21. //backColor = #343471
    22.  
    23. 30 = IMAGE
    24. 30.file = fileadmin/images/cons/cw-button.png
    25.  
    26. 50 = TEXT
    27. 50 {
    28. text.field = title
    29. fontSize = 10
    30. fontFile = fileadmin/templates/fonts/verdana.ttf
    31. fontColor = #ffffff
    32. offset = 10,20
    33. niceText = 0
    34. transparentBackground = 1
    35. }
    36. // 100 = || IMAGE
    37. // 100.file = fileadmin/scripts/ypMenu/menu_space.gif
    38. }
    39. IFSUB < temp.ypMenu.1.NO
    40. IFSUB = 1
    41.  
    42. RO < temp.ypMenu.1.NO
    43. RO = 1
    44. RO {
    45. // backColor = #40408C
    46. wrap = |
    47.  
    48. XY = [50.w]+20, 31
    49.  
    50. 30 = IMAGE
    51. 30.file = fileadmin/images/cons/cw-button-ro.png
    52.  
    53. 50 = TEXT
    54. 50 {
    55. text.field = title
    56. fontSize = 10
    57. fontFile = fileadmin/templates/fonts/verdana.ttf
    58. fontColor = #ffffff
    59. offset = 10,20
    60. niceText = 0
    61. transparentBackground = 1
    62. }
    63. }
    64.  
    65. IFSUBRO < temp.ypMenu.1.NO
    66. IFSUBRO = 1
    67. // backColor = #40408C
    68. wrap = |
    69.  
    70. XY = [50.w]+20, 31
    71.  
    72. 30 = IMAGE
    73. 30.file = fileadmin/images/cons/cw-button-ro.png
    74.  
    75. 50 = TEXT
    76. 50 {
    77. text.field = title
    78. fontSize = 10
    79. fontFile = fileadmin/templates/fonts/verdana.ttf
    80. fontColor = #ffffff
    81. offset = 10,20
    82. niceText = 0
    83. transparentBackground = 1
    84. }
    85. }
    86. }
    87.  
    88. 2 = TMENU
    89. 2 {
    90. IProcFunc = user_menu->secondLevel
    91. expAll = 1
    92. NO.linkWrap = <li>|</li>
    93. }
    94.  
    95. 3 = TMENU
    96. 3 {
    97. IProcFunc = user_menu->thirdLevel
    98. expAll = 1
    99. NO.linkWrap = <li>|</li>
    100. }
    101.  
    102. 4 = TMENU
    103. 4 {
    104. IProcFunc = user_menu->fourthLevel
    105. expAll = 1
    106. NO.linkWrap = <li>|</li>
    107. }
    108. 5 = TMENU
    109. 5 {
    110. IProcFunc = user_menu->fifthLevel
    111. expAll = 1
    112. NO.linkWrap = <li>|</li>
    113. }
    114. 6 = TMENU
    115. 6 {
    116. IProcFunc = user_menu->sixtLevel
    117. expAll = 1
    118. NO.linkWrap = <li>|</li>
    119. }
    120. }
    121.  
    122. temp.user_menu = USER
    123. temp.user_menu.userFunc = user_menu->menuEnd

    Kommen wir nun zur HTML Vorlage:

    [HTML]<html>
    <head>
    </head>
    <body bgcolor="#CCCCCC">

    <!-- ###DOKUMENT### begin -->

    <table border="0" width="1020" height="581">

    <tr>
    <td height="577" width="1020">

    <div style="position: absolute; width: 783px; height: 576px; z-index: 1; left: 118px; top: 17px; background-image:url('fileadmin/images/cons/cw-bg-sol.png')" id="back"></div>
    <div style="position: absolute; width: 765px; height: 456px; z-index: 2; left:127px; top:121px; background-image:url('fileadmin/images/cons/cw-bg-blau.png')" id="back2"></div>
    <div style="position: absolute; width: 697px; height: 342px; z-index: 2; left:144px; top:180px; background-color:#D8DADC" id="inhalt">###INHALT###</div>
    <div style="position: absolute; width: 701px; height: 38px; z-index: 2; left:144px; top:141px" id="cMenu">###MENU###</div>
    <div style="position: absolute; width: 700px; height: 21px; z-index: 2; left:142px; top:523px;" id="menu_unten">###MENU_UNTEN###</div>
    <div style="position: absolute; width: 700px; height: 18px; z-index: 2; left:142px; top:540px;" id="klickpfad">###KLICKPFAD###</div>
    <div style="position: absolute; width: 109px; height: 22px; z-index: 3; left:732px; top:523px" id="druckansicht" align="right">###DRUCKVERSION###</div>
    <div style="position: absolute; width: 109px; height: 18px; z-index: 3; left:732px; top:540px;" id="button" align=right>###BUTTON###</div>
    </td>
    </tr>
    </table>
    <!-- ###DOKUMENT### end -->
    </body>
    </html>[/HTML]

    Die zugehörige CSS Datei:

    [HTML]<strong>CSS-code ( fileadmin/templates/style2/class.css ) für das ypMenu und für den DIV mit der ID cMenu</strong>

    #cMenu {
    height:31px;
    width: 708px;
    margin-left:1px;
    margin-bottom:1px;
    background: #343471 url(http://85.214.32.188/fileadmin/scripts/ypMenu/menu.png) repeat-x top left;
    position:relative; /* wichtige angabe, sonst taucht das slideMenu an falscher Position auf */
    }

    /*
    ###################
    # ypMenu Styles #
    ###################
    */
    .mmContent {
    /* nrmale schrift definieren */
    font-size: 12px; font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    }

    .mmContent ul {
    margin: 0px; padding: 0px;
    list-style: none;
    z-index:2;
    position:relative;
    left:0px; top:0px;
    }
    .mmContent li {
    padding: 0px; margin: 0px;
    }

    .menuBackground {
    position:absolute;
    left:0px; top:0px;
    z-index:1;
    }

    .mmContent li a {
    /* Links bzw. die slideMenü-Elemente definieren */
    display: block;
    color: #ffffff;
    font-weight:normal;
    font-size: 12px;
    font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    width: 150px;
    padding: 5px;
    text-decoration: none;
    border-bottom: solid 1px #CCCCCC; /* der rand zwischen den MenüElementen */
    }

    * html .mmContent li a {
    width: 160px;
    width: 160px;
    }

    /* */
    .mmContent li a:link { background: #343471; color: #ffffff; font-size: 12px; }
    .mmContent li a:visited { background: #343471; color: #ffffff; font-size: 12px; }

    .mmContent li a:hover{ background: #343471; color: #ffffff; font-size: 12px; }
    .mmContent li a:active { background: #343471; color: #ffffff; font-size: 12px; }

    .mmContent li a.submenu {
    background: #343471 url(http://85.214.32.188/fileadmin/images/cons/pfeil.gif) no-repeat right center; }
    .mmContent li a.submenu:hover {
    background: #343471 url(http://85.214.32.188/fileadmin/images/cons/pfeil.gif) no-repeat right center; }

    /*
    ##########################################
    # ypMenu Styles for our belove IE 5.01 #
    ##########################################
    */

    .mmContentb {
    font-size: 12px; font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    }

    .mmContentb ul {
    margin: 0px; padding: 0px;
    list-style: none;
    z-index:2;
    position:relative;
    left:0px; top:0px;
    }
    .mmContentb li {
    padding: 0px; margin: 0px;
    }

    .menuBackground {
    position:absolute;
    left:0px; top:0px;
    z-index:1;
    }

    .mmContentb li a {
    /* Links bzw. die slideMenü-Elemente definieren */
    display: block;
    width: 150px;
    padding: 5px;
    color: #222222;
    font-weight: normal;
    font-size: 12px;
    font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
    text-decoration: none;
    border-bottom: solid 1px #CCCCCC; /* der rand zwischen den MenüElementen */
    }

    * html .mmContentb li a {
    width: 160px;
    width: 160px;
    }

    .mmContentb li a:link { background: #343471; color: #ffffff; }
    .mmContentb li a:visited { background: #343471; color: #ffffff; }

    .mmContentb li a:hover{ background: #343471; color: #ffffff; }
    .mmContentb li a:active { background: #343471; color: #ffffff; }

    .mmContentb li a.submenu {
    background: #343471 url(http://85.214.32.188/fileadmin/images/cons/pfeil.gif) no-repeat right center;
    font-size: 12px;
    }
    .mmContentb li a.submenu:hover {
    background: #343471 url(http://85.214.32.188/fileadmin/images/cons/pfeil.gif) no-repeat right center;
    font-size: 12px;
    }

    #inhalt {

    font-family:arial; /*Schriftart*/
    color:#343471; /*Schriftfarbe*/
    font-size:12; /*Schriftgröße*/
    overflow:auto;
    width:100%;
    height:100%;
    padding:20px;
    padding-left:30px;
    scrollbar-base-color:#D8DADC; /*legt die Grundfarbe des Scrollbalkens fest*/
    scrollbar-track-color:#D8DADC; /*legt die Hintergrundfarbe des Scrollbalkens fest*/
    scrollbar-face-color:#343471; /*legt die Farbe der Scrollbalken-Oberfläche fest*/
    }

    #klickpfad { /*class mit dem Namen "klickpfad" wird angesprochen*/

    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    }

    #klickpfad a:hover { /*Mouseover-Effekt für die class "klickpfad"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    }

    #klickpfad a:visited { /*Mouseover-Effekt für die class "klickpfad"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    }

    #klickpfad a:active { /*Mouseover-Effekt für die class "klickpfad"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    }

    #klickpfad a:link { /*Mouseover-Effekt für die class "klickpfad"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    }

    #menu_unten { /*class mit dem Namen "menu_unten" wird angesprochen*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #menu_unten a:hover { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #menu_unten a:visited { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #menu_unten a:active { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #menu_unten a:link { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    .form {
    font-size: 11pt;
    font-family: arial;
    }
    .table {
    font-size: 11pt;
    font-family: arial;
    }

    #druckansicht { /*class mit dem Namen "menu_unten" wird angesprochen*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #druckansicht a:hover { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #druckansicht a:visited { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #druckansicht a:active { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #druckansicht a:link { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #button { /*class mit dem Namen "menu_unten" wird angesprochen*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #button a:hover { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #button a:visited { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #button a:active { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    #button a:link { /*Mouseover-Effekt für die class "menu_unten"*/
    font-family:arial; /*Schriftart*/
    color:#dddddd; /*Schriftfarbe*/
    font-size:11; /*Schriftgröße*/
    font-weight:bold; /*legt fest wie fett eine Schrift ist*/
    }

    textarea {
    overflow-x:hidden;
    overflow-y:auto;
    width:266
    }

    td {
    font-family:arial; /*Schriftart*/
    color:#343471; /*Schriftfarbe*/
    font-size:12;
    }

    body,
    html {
    overflow: hidden;
    } [/HTML]

    Wem die Pfade zu komisch sind kann sie gern x beliebig abändern.

    Die benötigten Datei zu meinem Code bsp.:

    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/jslib.js[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/ypSlideOutMenus.js[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/ypmenu.ini[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/line_menu.gif[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/menu.png[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/menu_bg.png[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/menu_space.gif[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/menu_sub.gif[/url]
    [url]http://85.214.32.188/fileadmin/scripts/ypMenu/menu_sub.png[/url]
    [url]http://85.214.32.188/fileadmin/templates/style2/class2.css[/url]
    [url]http://85.214.32.188/fileadmin/templates/fonts/verdana.ttf[/url]
    [url]http://85.214.32.188/fileadmin/vorlage_con_sol.html[/url]

    So ich glaube nichts vergessen zu haben :) wer sich wundert warum die ypMenu.ini eine *.ini Datei ist -> nehmt es so hin ;) so brauch man wenigstens nicht remote arbeiten sondern kann bequem die Datei uploaden für änderungen.
    Es werden noch 2 Grafiken für das Menü geladen die ihr euch allerdings selbst zusammen bauen müsstet.
    Ich gebe sie euch allerdings trotzdem für die Abmaße.

    Die Transparenz wurde ebenfalls entfernt.

    [url]http://85.214.32.188/fileadmin/images/cons/cw-button.png[/url]
    [url]http://85.214.32.188/fileadmin/images/cons/cw-button_ro.png[/url]

    So dieses Menü funktioniert definitiv lediglich die Positionierung ist momentan bei mir wegen der langen Menüeinträge fürn Popo ;)

    Ich hab auch schon versucht den breakpoint zu vergrößern brachte jedoch nicht den gewünschten erfolg. Falls mir ein Erfahrener T3 bauer an der Stelle eventuell helfen könnte wäre ich echt dankbar.

    lg und viel spaß arrow

    *edit: Die Downloads funzen alle wärs nicht geladen sondern nur angezeigt bekommt sollte nen DownloadManager benutzen oder im Opera den Schnelldownload via URL benutzen.