salu je voudrai savoir c kle mod le menu a gauche
c sympa com peti racourci
merci davance
Modérateur: Modérateurs
par le_polux » 20 Sep 2004 12:49
par Le confesseur » 20 Sep 2004 12:50
par permidion » 20 Sep 2004 12:57
par Le confesseur » 20 Sep 2004 13:00
par GrenDup » 20 Sep 2004 14:33
par LeFlemar » 20 Sep 2004 15:13
par lepolux » 20 Sep 2004 17:07
par krigou » 20 Sep 2004 18:08
<script>
/*
Copyright © MaXimuS 1999-2001, All Rights Reserved.
Copyright © Obelix 2001 for phpBB V2, All Rights Reserved.
*/
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
tempBar='';barBuilt=0;lastY=0;ssmItems=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&&winY<=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><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></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="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'">');
for(i=0;i<ssmItems.length;i++) {
if(!ssmItems[i][3]){ssmItems[i][3]=menuCols;ssmItems[i][5]=menuWidth-1}
else if(ssmItems[i][3]!=menuCols)ssmItems[i][5]=Math.round(menuWidth*(ssmItems[i][3]/menuCols)-1);
if(ssmItems[i-1]&&ssmItems[i-1][4]!="no"){document.write('<TR>')}
if(!ssmItems[i][1]){
document.write('<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+ssmItems[i][5]+'" COLSPAN="'+ssmItems[i][3]+'"><font face="'+hdrFontFamily+'" size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b> '+ssmItems[i][0]+'</TD>')}
else {if(!ssmItems[i][2])ssmItems[i][2]=linkTarget;
document.write('<TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+ssmItems[i][5]+'" COLSPAN="'+ssmItems[i][3]+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+ssmItems[i][1]+'" target="'+ssmItems[i][2]+'" CLASS="ssmItems">'+ssmItems[i][0]+'</DIV></LAYER></ILAYER></TD>')}
if(ssmItems[i][4]!="no"&&barBuilt==0){buildBar();barBuilt=1}
if(ssmItems[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){ssmItems[ssmItems.length]=[name, '', '', cols, endrow]}
function addItem(name, link, target, cols, endrow){if(!link)link="javascript://";ssmItems[ssmItems.length]=[name, link, target, cols, endrow]}
</script>
<script>
<!--
/*
//////////////////Configuration des couleurs du menu////////////////
*/
YOffset=60; // no quotes!!
staticYOffset=20; // no quotes!!
XOffset=1; // no quotes!!
slideSpeed=10 // no quotes!!
waitTime=500; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#1B7CAD";
menuIsStatic="yes";
menuWidth=220; // Must be a multiple of 10! no quotes!!
menuCols=1;
hdrFontFamily="verdana";
hdrFontSize="1";
hdrFontColor="#FFBE7D";
hdrBGColor="#3D597E";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="3";
linkFontFamily="Verdana";
linkFontSize="1";
linkBGColor="#CBD3D9";
linkOverBGColor="#EDF2F2";
linkTarget="_top";
linkAlign="left";
barBGColor="#DEE3E7";
barFontFamily="Verdana";
barFontSize="1";
barFontColor="#004c75";
barVAlign="center";
barWidth=15; // no quotes!!
barText='Menu Forum libellules.ch' // <IMG> tag supported, Ex: '<img src="some.gif" border=0>'
/////////////Fin de configuration des couleurs///////////////////////////
ssmItems[0]=["Menu du forum", "","",1]
ssmItems[1]=[" > Tous les forums", "./\index.php", "",1]
ssmItems[2]=["Internet", "", "",1]
ssmItems[3]=[" > ADSL ", "http://www.libellules.ch/phpBB2/viewforum.php?f=1", "",1]
ssmItems[4]=[" > Internet ", "http://www.libellules.ch/phpBB2/viewforum.php?f=2", "",1]
ssmItems[5]=["Multimedia", "", "",1]
ssmItems[6]=[" > Peer to peer ", "http://www.libellules.ch/phpBB2/viewforum.php?f=4", "",1]
ssmItems[7]=[" > MP3 & MIDI, Gravure ", "http://www.libellules.ch/phpBB2/viewforum.php?f=6", "",1]
ssmItems[8]=[" > Video, DVD, DivX ", "http://www.libellules.ch/phpBB2/viewforum.php?f=7", "",1]
ssmItems[9]=[" > Photos numériques ", "http://www.libellules.ch/phpBB2/viewforum.php?f=15", "",1]
ssmItems[10]=["Software, hardware", "", "",1]
ssmItems[11]=[" > Shareware, Freeware ", "http://www.libellules.ch/phpBB2/viewforum.php?f=3", "",1]
ssmItems[12]=[" > Hardware ", "http://www.libellules.ch/phpBB2/viewforum.php?f=11", "",1]
ssmItems[13]=["Systèmes d'exploitation", "", "",1]
ssmItems[14]=[" > Windows XP,2000,ME,98 ", "http://www.libellules.ch/phpBB2/viewforum.php?f=8", "",1]
ssmItems[15]=[" > Les arcanes de Windows ", "http://www.libellules.ch/phpBB2/viewforum.php?f=13", "",1]
ssmItems[16]=[" > Linux ", "http://www.libellules.ch/phpBB2/viewforum.php?f=16", "",1]
ssmItems[17]=["Jeux Video", "", "",1]
ssmItems[18]=[" > Le forum des jeux ", "http://www.libellules.ch/phpBB2/viewforum.php?f=17", "",1]
ssmItems[19]=["Bric à Brac", "", "",1]
ssmItems[20]=[" > Défouloir ", "http://www.libellules.ch/phpBB2/viewforum.php?f=5", "",1]
ssmItems[21]=["Divers", "", "",1]
ssmItems[22]=[" > Les News ", "http://www.libellules.ch/phpBB2/viewforum.php?f=9", "",1]
ssmItems[23]=[" > Bureau des réclamations ", "http://www.libellules.ch/phpBB2/viewforum.php?f=10", "",1]
ssmItems[24]=["Forum des membres", "", "",1]
ssmItems[25]=[" > Le forum des membres ", "http://www.libellules.ch/phpBB2/viewforum.php?f=12", "",1]
ssmItems[26]=["Divers outils", "", "",1]
ssmItems[27]=[" > Nouveaux messages sur le forum ", "http://www.libellules.ch/phpBB2/search.php?search_id=newposts", "",1]
ssmItems[28]=[" > Rechercher ", "http://www.libellules.ch/phpBB2/search.php", "",1]
ssmItems[29]=[" > Boîte de réception ", "http://www.libellules.ch/phpBB2/privmsg.php?folder=inbox", "",1]
ssmItems[30]=[" > Liste des membres ", "http://www.libellules.ch/phpBB2/memberlist.php", "",1]
ssmItems[31]=[" > Profil ", "http://www.libellules.ch/phpBB2/profile.php?mode=editprofile", "",1]
ssmItems[32]=[" > Connexion/Déconnexion ", "http://www.libellules.ch/phpBB2/login.php", "",1]
buildMenu();
//-->
</script>
par le_polux » 20 Sep 2004 18:59
par krigou » 20 Sep 2004 19:17
par le_polux » 20 Sep 2004 19:44
par Gribouillon » 24 Sep 2004 12:56
j'ai bienchangé le code mais il ne se passe rien du tou
je capte pas
par no_fx » 24 Sep 2004 13:12
par Invité » 27 Sep 2004 16:30
par teppner » 27 Sep 2004 17:04
par le_polux » 27 Sep 2004 17:25