Zum Inhalt springen

Slide Menu funktioniert nicht

Erstellt am 28. März 2005 · 4 Antworten · letzte Antwort am 29. März 2005

Tags: JavaScript & AJAX, Frage

Strichmaennli ·

Hallo zusammen

Ich komme nicht mehr weiter.
Habe 2 Probleme:

-Menüzeile erscheint nicht
-Slide-Menü wird nicht unterhalb des Menüs angezeigt

siehe http://www.strichmaennli.ch

setup:

seite = PAGE
seite.typeNum = 0
seite.stylesheet = fileadmin/MEADE-Menue/menu.css
# Benoetigte Libaries einfuegen
seite.includeLibs.ypMenu = fileadmin/MEADE-Menue/ypMenu.php

seite.headerData.10 = TEXT
seite.headerData.10.value = <script type="text/javascript" src="fileadmin/MEADE-Menue/ypSlideOutMenus.js" language="JavaScript"></script><script type="text/javascript" src="fileadmin/MEADE-Menue/jslib.js" language="JavaScript"></script>

seite.10 = TEMPLATE
seite.10 {
            template = FILE
            template.file = fileadmin/template/root.html
            workOnSubpart = DOKUMENT
            marks.DOKUMENT =  CONTENT
            marks.DOKUMENT < styles.content.get
marks.BORDER >
marks.BORDER = HMENU
marks.BORDER.entryLevel = 1 
marks.BORDER.special = directory
marks.BORDER.special.value = 3
marks.BORDER.1 = GMENU
marks.BORDER.1 {
  IProcFunc = user_menu->firstLevel
  expAll = 1
  wrap = | 

IFSUB = 1
IFSUB {
  wrap = |

   XY = [50.w]+20, 25
   backColor = #ffffff

   50 = TEXT
   50 {
    text.field = title
    fontSize = 12
    fontFile = fileadmin/fonts/verdana.ttf
    fontColor = #000000
    offset = 10,17
    niceText = 1

   }

   100 = || IMAGE
#   100.file = fileadmin/MEADE-Menue/spacer.gif
}

NO {
  wrap = |

   XY = [50.w]+20, 25
   backColor = #cccccc

   50 = TEXT
   50 {
    text.field = title
    fontSize = 12
    fontFile = fileadmin/fonts/verdana.ttf
    fontColor = #222222
    offset = 10,17
    niceText = 1

   }

   100 = || IMAGE
#   100.file = fileadmin/MEADE-Menue/spacer.gif
}

RO < marks.BORDER.1.NO
RO = 1
RO  {
   backColor = #ffca51
}

IFSUBRO < marks.BORDER.1.NO
IFSUBRO = 1
IFSUBRO  {
   backColor = #ffca51
  }
}


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

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

marks.BORDER.4 = TMENU
marks.BORDER.4 {
IProcFunc = user_menu->fourthLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
}
# append Menu JS to page
seite.11 = USER
seite.11.userFunc = user_menu->menuEnd 
tt_content.header.20.1.fontTag = <font face="verdana" size="4"> | </font>
tt_content.text.20.textStyle.size.default = 
tt_content.text.20.textStyle.align.field = text_align

html-vorlage:

<html>
<head>
<title>Strichmaennlis Homepage</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description">

<script language="JavaScript" type="text/JavaScript">
<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<!-- ###DOKUMENT### -->
<script src="fileadmin/template/blur.js" type="text/javascript"></script>
<script src="fileadmin/template/dt.js" type="text/javascript"></script>
<meta http-equiv="imagetoolbar" content="no">
</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="window.setTimeout('datumuhr()',1000)">

 <table>
  <td width="20"></td>
 </table>
<div align="center">
  <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <!-- row 1 -->
      <td width="780" height="80"><img name="strichmaennli" src="fileadmin/template/images/banner.jpg" width="780" height="80" border="0" alt=""></td>
   </tr>
 </table>

 <table>
  <td width="780" height="40">###BORDER###</td>
 </table>

  <table border="0" cellpadding="0" cellspacing="0" width="780" height="600">
    <tr>
      <td width="150" height="400" valign="top" background="fileadmin/template/images/back2.jpg"><br></td>
      <th rowspan="2" width=20>&nbsp;</th>
      <th rowspan="2" valign="top" width="600" bgcolor="#ff0000"><div align="justify"><strong>###CONTENT###</strong></div></th>      
        <br> 
    </tr>
    <tr>
      <td width="150" height="200"></td>
    </tr>
  </table>
  <table border="0" cellpadding="0" cellspacing="0" width="780">
    <tr>
      <td height="18">&nbsp;</td>
    </tr>
  </table>
  <table border="0" cellpadding="0" cellspacing="0" width="780" bgcolor="#ff0000">
	 <td width="640">copyright by <a href="http://www.strichmaennli.ch" target="_self">Strichmaennli</a></td>
	 <td width="20"align="right">|&nbsp;&nbsp;</td>
	 <td bgcolor="#FF0000"width="50" align="right"><form name="anzeige"><input size=10 name="date" class="datum" size="10"></form></td>
	 <td width="20" align="right">|&nbsp;&nbsp;</td>
	 <td width="50" align="right"><form name="anzeige2" bgcolor="#FF0000"><input size=8 name="time" class="datum" size="8"></form></td>
         <td align="right">|&nbsp;</td>
  </table>
  <table border="0" cellpadding="0" cellspacing="0" width="780">
    <tr>
      <td height="16"></td>
    </tr>
  </table>
</div>
<!-- ###DOKUMENT### --> 
</body>
</html>

kann mir da jemand behilflich sein?

gruss

SilverBlue ·

Du musst in der ypMenu.php die Werte "offsetY" und "offsetX" anpassen, dann erscheint das Slidemenü an der richtigen Stelle.

SilverBlue ·

Bei mir hat es geklappt, nachdem ich beim dem "RO" und dem "IFSUBRO" folgendes nach der Angabe zur backColor ergänzt habe:

   50 = TEXT
   50 {
    text.field = title
    fontSize = 12
    fontFile = fileadmin/fonts/verdana.ttf
    fontColor = #222222
    offset = 10,17
    niceText = 1

   }

Ich hoffe das hilft 😉