Seite 3 von 5
Verfasst: 13.08.2005 01:19
von Treverer
oliver12345 hat geschrieben:@ Treverer
Aber irgendwas musst du ja falsch gemacht haben. Ich habe keine Probleme mit meinem Script. Habe es vorhin extra nochmal getestet.
Naja, bin mal auf deine Lösung gespannt.

muß ja nicht sein, denn mein phpBB ist ziemlich "frisch", d.h. es sind wenig mods eingebaut. vielleicht hast du schon andere bzw. nicht das neueste phpBB? es funktioniert halt definitiv nicht, aber ich schaue mir deinen code nochmals genauer an...
Verfasst: 13.08.2005 01:23
von oliver12345
@ Treverer
Nein, ich habe immer das aktuellste phpBB. Und ich habe es auch erst vor ein paar Monaten frisch installiert.
Verfasst: 03.01.2008 23:13
von Clemens_Roemer
Hallo Leute,
Erstmal danke denn die funktion von treverer hat bei mir auch funktioniert.
Aber ich hätte da mal ne frage wie es mit dem IE 7 aussieht. denn da funtioniert das mit scrollen nicht mehr.
Hat da schon jemand erfahrungen gesamelt und kann mir einen tipp geben wie man das ändern kann?
Gruß clemens
Verfasst: 03.01.2008 23:22
von oliver12345
@ Clemens_Roemer
Seltsam, das Problem habe ich nicht. Ich habe den Code für das Slidemenü bei mir seit Jahren unverändert und es läuft auch beim IE7, wie ich gerade extra nochmal getestet habe.
Verfasst: 04.01.2008 08:04
von Clemens_Roemer
Hi Oliver,
meinst du deinen Code den du gepostet hast
oder meinst du die variante die treverer benutzt?
gruß clemens
Verfasst: 04.01.2008 14:50
von oliver12345
@ Clemens_Roemer
Der von mir gepostete Code ist auch heute noch so. Den von Treverer habe ich allerdings so nicht in der menue.js. Wenn ich so zurückdenke, habe ich auch, glaube ich, mal eine neue Version dieser menue.js irgendwo heruntergeladen. Welche Version steht denn bei dir in dieser Datei? Ich habe Version 6.5.3.5.
Verfasst: 07.01.2008 18:58
von Clemens_Roemer
hi
ich finde grad die nummer nicht aber ich habe die menue.js die bei phpBB 2.022 bei ist und an einer stelle geändert.
if (NS6){
ssm=document.getElementById("ssm").style
ssm.top=252+'px';
ssm.visibility="visible";
ssm.left = -menuWidth+'px';}
else if (IE) {
gruß clemens
Verfasst: 07.01.2008 21:47
von oliver12345
@ Clemens_Roemer
Wie "die menue.js, die bei phpBB dabei ist"? Standardmäßig ist das doch gar nicht der Fall.
Die Versionsnummer steht jedenfalls in dieser Datei gleich in den ersten Zeilen.
Verfasst: 08.01.2008 17:43
von Clemens_Roemer
Oh sorry ich hab die hierher
slide_menue_mod_v100_emc.zip
aber ich finde diese versionsnummer nicht
gruß clemens
Verfasst: 08.01.2008 18:05
von oliver12345
@ Clemens_Roemer
Aha, das ist Version 6. Meine ist aktueller. Hier der Inhalt meiner
menue.js:
Code: Alles auswählen
<!--
/*
Copyright © MaXimuS 1999-2001, All Rights Reserved.
Site: http://www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Script: Static Slide Menu
Version: 6.5.3.5 (Temporary)
*/
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
tempBar='';
barBuilt=0;
lastY=0;
sI=new Array();
moving=setTimeout('null',1);
function moveOut() {if (parseInt(ssm.left)<0) {clearTimeout(moving);
moving = setTimeout('moveOut()', slideSpeed);slideMenu(10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {if (parseInt(ssm.left)>(-menuWidth)) {clearTimeout(moving);
moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}}
function slideMenu(num){ssm.left = parseInt(ssm.left)+num;
if (NS) {bssm.clip.right+=num;bssm2.clip.right+=num;
if(bssm.left+bssm.clip.right>document.width)document.width+=num}}
function makeStatic() {
winY=(IE)?document.body.scrollTop:window.pageYOffset;
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeStatic()', 10)}
function buildBar() {
if(barText.toLowerCase().indexOf('<img')>-1) {tempBar=barText}
else{for (b=0;b<barText.length;b++) {tempBar+=barText.charAt(b)+"<BR>"}}
document.write('<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'" align=center><span style="font-family: '+barFontFamily+'; font-size: '+barFontSize+'px; color: '+barFontColor+';"><B>'+tempBar+'</B></span></td>')}
function initSlide() {
if (NS6||IE){ssm=(NS6)?document.getElementById("thessm"):document.all("thessm");
bssm=(NS6)?document.getElementById("basessm").style:document.all("basessm").style;
bssm.clip="rect(0 "+ssm.offsetWidth+" "+(((IE)?document.body.clientHeight:0)+ssm.offsetHeight)+" 0)";
bssm.visibility="visible";ssm=ssm.style;if(NS6)bssm.top=YOffset}
else if (NS) {bssm=document.layers["basessm1"];
bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;ssm.visibility = "show";}
if (menuIsStatic=="yes") makeStatic();}
function buildMenu() {
if (IE||NS6) {document.write('<DIV ID="basessm" style="visibility:hidden;Position : Absolute ;Left : '+XOffset+' ;Top : '+YOffset+' ;Z-Index : 20;width:'+(menuWidth+barWidth+10)+'"><DIV ID="thessm" style="Position : Absolute ;Left : '+(-menuWidth)+' ;Top : 0px ;Z-Index : 21;'+((IE)?"width:1px":"")+'" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER name="basessm1" top="'+YOffset+'" LEFT='+XOffset+' visibility="show" onload="initSlide()"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+(-menuWidth)+'" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
document.write('<table border="0" cellpadding="1" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'">');
for(i=0;i<sI.length;i++) {
if(!sI[i][3]){sI[i][3]=menuCols;sI[i][5]=menuWidth-1}
else if(sI[i][3]!=menuCols)sI[i][5]=Math.round(menuWidth*(sI[i][3]/menuCols)-1);
if(sI[i-1]&&sI[i-1][4]!="no"){document.write('<TR>')}
if(!sI[i][1]){
document.write('<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+sI[i][5]+'" COLSPAN="'+sI[i][3]+'"><span style="font-family: '+hdrFontFamily+'; font-size: '+hdrFontSize+'px; color: '+hdrFontColor+';"><b> '+sI[i][0]+'</b></span></TD>')}
else {if(!sI[i][2])sI[i][2]=linkTarget;
document.write('<TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+sI[i][5]+'" COLSPAN="'+sI[i][3]+'" style="cursor: default;"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><span style="font-family: '+linkFontFamily+'; font-size: '+linkFontSize+'px; color: #516A88;"> • <A HREF="'+sI[i][1]+'" target="'+sI[i][2]+'" style="text-decoration: none;">'+sI[i][0]+'</DIV></LAYER></ILAYER></TD>')}
if(sI[i][4]!="no"&&barBuilt==0){buildBar();barBuilt=1}
if(sI[i][4]!="no"){document.write('</TR>')}}
document.write('</table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV></DIV>');setTimeout('initSlide();', 1)}
if (NS) {document.write('</LAYER></ILAYER></LAYER>')}}
function addHdr(name, cols, endrow){sI[sI.length]=[name, '', '', cols, endrow]}
function addItem(name, link, target, cols, endrow){if(!link)link="javascript://";sI[sI.length]=[name, link, target, cols, endrow]}
//-->
Damit dürfte es klappen.