Seite 6 von 9
Verfasst: 24.07.2004 01:46
von danysahne333
so hab das grad installiert und schaut wirklich klasse aus. hab auch das addon nstalliert das user selbst wählen könne ob sie das menue wollen oder nicht. nur funktioniert das nicht.
man kann ja oder nein einstellen , doch das menue ist immer sichtbar.
woran kann das liegen???
dany
[edit] hat sich erledigt. hab alles nochmal neu hochgeladen udn es funktioniert.
klasse mod!
Verfasst: 26.07.2004 00:45
von danysahne333
Gorm hat geschrieben:Danke für dieses Script, funktioniert tadellos. Wie üblich, hier eine Frage
Kann ich bei einzelnen Menüeinträgen (Links) den Target angeben ? Der steht ja im Script auf _self was fast immer optimal ist, nur manchmal bevorzuge ich ein _blank
Kann ich das bei einem einzelnen Eintrag irgendwie mit angeben ?
will das bei manchen links sich ein neues fenster öffnet.
hat denn nun schon jemand ne idee wie das funktioniert???
Verfasst: 26.07.2004 01:58
von Andy120
Wen du es so meinst...
Bzw. der Link sollte so aussehen...
Code: Alles auswählen
<a href="http://DeinLink.ch"target="blank">DeinLinkText</a>
Verfasst: 26.07.2004 11:58
von danysahne333
das funtioniert leider nicht.
hier mal ein auszug aus dem teil der
overall_header.tpl wo die links angegeben werden:
Code: Alles auswählen
startMenu("Navigation", "FOREN - NAVIGATION");
addExItem("Intro", "intro.php");
addExItem("Portal", "portal.php");
addExItem("Index", "{U_INDEX}");
addHdr(" ");
addExItem("{L_LOGIN_LOGOUT}", "{U_LOGIN_LOGOUT}");
addExItem("{L_PROFILE}", "{U_PROFILE}");
addExItem("{PRIVATE_MESSAGE_INFO}", "{U_PRIVATEMSGS}");
addHdr(" ");
addExItem("{L_USERGROUPS}", "{U_USERGROUPS}");
addExItem("{L_SEARCH}", "{U_SEARCH}");
addExItem("{L_MEMBERLIST}", "{U_MEMBERLIST}");
addHdr(" ");
addExItem("{L_FAQ}", "{U_FAQ}");
addExItem("Mitarbeiter", "staff.php");
addHdr(" ");
addExItem("Kalender", "calendar.php");
addExItem("Foto-Album", "album.php");
addHdr(" ");
addExItem("Cottbus.de", "http://www.cottbus.de");
addHdr(" ");
addExItem("VOR", "javascript:history.forward()");
addExItem("ZURUECK", "javascript:history.back()");
endMenu();
und beim link von cottbus.de hätt ich gern das sich die seite in einem neuen fensetr öffnet.
hast du da oder jemand anderes ne idee?
Verfasst: 26.07.2004 12:21
von Andy120
Versuche mal die möglicgkeiten! Der erste sollte stimmen wen nicht versuche die 2. und 3. möglicgkeit

Hoffentlich klappts
1. Versuch
Code: Alles auswählen
addExItem("Cottbus.de", "http://www.cottbus.de"target=blanc");
2. Versuch
Code: Alles auswählen
addExItem("Cottbus.de"target=blanc", "http://www.cottbus.de");
3. Versuch
Code: Alles auswählen
addExItem("Cottbus.de"target=blanc", "http://www.cottbus.de"target=blanc");
Verfasst: 26.07.2004 13:40
von danysahne333
das klappt leider alles nicht.das menü ist wenn ich es auf die 3 arten ändere nie zusehen.
ich post mal den inhalt der menue.js
menue.js
Code: Alles auswählen
<!--
/*
Copyright © MaXimuS 2000-2001, All Rights Reserved.
Site: http://www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Version: 6 (NS6 Compatibility)
*/
// Default settings. Don't change them.
YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="white";
hdrBGColor="#170088";
hdrAlign="right";
hdrVAlign="center";
hdrHeight="20";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="white";
linkOverBGColor="#DDDDDD";
linkTarget="_self";
linkAlign="left";
menuBGColor="white";
menuIsStatic="yes";
menuWidth=110; // Must be a multiple of 10! no quotes!!
barBGColor="#444444";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="white";
barVAlign="top";
barWidth=20; // no quotes!!
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
moving=setTimeout('null',1)
function moveOut() {
if ((NS6 && parseInt(ssm.left)<0)||(IE && ssm.style.pixelLeft<0)||(NS && document.ssm.left<0)) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed)
if (NS6) {ssm.left = parseInt(ssm.left)+10+"px";}
if (IE) {ssm.style.pixelLeft += 10;}
if (NS) {document.ssm.left += 10;}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {
clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {
if ((NS6 && parseInt(ssm.left)>(-menuWidth))||(IE && ssm.style.pixelLeft>(-menuWidth))||(NS && document.ssm.left>(-menuWidth))) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);
if (NS6) {ssm.left = parseInt(ssm.left)-10+"px";}
if (IE) {ssm.style.pixelLeft -= 10;}
if (NS) {document.ssm.left -= 10;}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
lastY = 0;
function makeStatic() {
if (NS6) {winY = window.pageYOffset;}
if (IE) {winY = document.body.scrollTop;var NM=document.all('ssm').style}
if (NS) {winY = window.pageYOffset;var NM=document.ssm}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY);}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6) ssm.top=parseInt(ssm.top)+smooth+"px"
if (IE) NM.pixelTop+=smooth;
if (NS) NM.top+=smooth;
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}
function initSlide() {
if (NS6){
ssm=document.getElementById("ssm").style
ssm.visibility="visible";
ssm.left = -menuWidth;}
else if (IE) {
ssm.style.visibility = "visible"
ssm.style.pixelLeft = -menuWidth;}
else if (NS) {
document.ssm.left = -menuWidth;
document.ssm.visibility = "show"}
if (menuIsStatic=="no") makeStatic();}
function startMenu(menuHeader, barText) {
if (IE||NS6) {document.write('<DIV ID="ssm" style="visibility:hidden;Position : Absolute ;Left : 0px ;Top : '+YOffset+' ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}
document.write('<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><tr><td bgcolor="'+hdrBGColor+'" WIDTH="'+(menuWidth-1)+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+menuHeader+'</b></font></td><td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD></tr>')}
function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" CLASS="ssmItems" target="_self">'+text+'</DIV></LAYER></ILAYER></TD></TR>')}
function addExItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="_self" CLASS="ssmItems">'+text+'</DIV></LAYER></ILAYER></TD></TR>')}
function addExPic(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><TD cellpadding="2" BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"> <A HREF="'+link+'" target="_self" CLASS="ssmItems"><img src="'+text+'" border="0"></A></DIV></LAYER></ILAYER></TD></TR>')}
function addHdr(text) {
document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td></tr>')}
function endMenu() {
document.write('<tr><td bgcolor="'+hdrBGColor+'"><font size="0" face="Arial"> </font></td></TR></table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 100)}
//-->
muss da vielleicht noch irgendwas definiert werden??
dany
Verfasst: 23.11.2004 15:30
von Blisk
meine deutsche is sehr schelct.
So i will ask in english.
I did have a problem with mozilla too, but I found out that you must install code at the star of php file, not in tpl and it will work in mozilla and IE.
But here is now a problem with a session, because some users when they login on portal they have like message there is a 20 new posts, but when they click on forum, all red images where are new posts on forum are gone, like there is no new posts.
I hope there is a solution for this because I like this slide menu!
Verfasst: 19.11.2005 15:39
von Snoopy
Hallo! Mich würde interessieren, ob es mit allen Browsern kompatibel ist?
Und wo ich dann vielleicht noch das Addon her bekomme!
Wäre nett wenn mir da jemand helfen könnte!
Verfasst: 27.11.2005 13:28
von -=Fable=-
Also der Mod funzt echt super, nur bleibt das Menü immer oben verankert...Wie kann ich das ändern? Am Firefox kann es nicht liegen, denn auf anderen Seiten scrollt das auch mit
UNd ausserdem hätte ich es gerne, dass das Menü beim ersten laden der Seite zugeklappt ist
Verfasst: 27.11.2005 13:38
von Peggy
Wenn du an der menu.js nichts geändert hast, könnte es an einem anderen JavaScript liegen, dass das Slide Menü nicht so funktioniert, wie bei allen anderen auch.