







|
|
|
 |
| > Plus de 6 liens dans le Menu Dynamique II |
[ Posté par yakou32 ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 15-11-2003 à 18:36 | 8 messages ]
  Salut!
J'ai récupéré le Menu Dynamique II
http://www.editeurjavascript.com/scripts/scripts_nav_19.php
Tout newbie que je suis, j'en profite pour remercier ceux qui travaille dans l'ombre d'ejs, et dont les scripts me rendent bien service !
Voilà mon soucis, je voudrais 12 menus au lieu de 6. Peut-être que ça rentrera pas, mais au moins j'aimerais bien tester...
Alors j'ai essayé de modifier le script, mais je crois que j'en connais pas assez...
Ça c'est ma page :
http://www.avalonsquare.net/clj/menu4.htm
et ça c'est le script utilisé :
/*
SCRIPT TROUVE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
/* A REGLER MANUELLEMENT SI LE CADRE EST TROP PETIT */
hauteurcadre = 50;
xmenu = new Array;
xlien = new Array;
xmenu[0] = 'Accueil';
xmenu[1] = 'Présentation';
xmenu[2] = 'Historique';
xmenu[3] = 'Adhérents';
xmenu[4] = 'Activités';
xmenu[5] = 'Canard Junior';
xmenu[6] = 'Partenaires';
xmenu[7] = 'Personnel';
xmenu[8] = 'Séances Info';
xmenu[9] = 'Adultes Relais';
xmenu[10] = 'Photos';
xmenu[11] = 'Contact';
xlien[0] = ''
xlien[1] = ''
xlien[2] = ''
xlien[3] = ''
xlien[4] = ''
xlien[5] = ''
xlien[3] += '<A HREF="gsg.html" CLASS=menudyn3>clsh</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="qfqf.html" CLASS=menudyn3>soutien scolaire</A>';
xlien[4] += '<A HREF="qgg" CLASS=menudyn3>sportives</A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="dhqshqh.html" CLASS=menudyn3>socio-culturelles</A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="qgqgq.html" CLASS=menudyn3>Soutien Scolaire</A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="qggq.html" CLASS=menudyn3>Mémoire</A>';
xlien[5] += '<A HREF="gqg.hyml" CLASS=menudyn3>présentation</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="qg" CLASS=menudyn3>archives</A>';
document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:#FFFFFF; text-decoration:none;}\nA:hover.menudyn3 {color:#FF9900;text-decoration:none;}\n</STYLE>');
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(xlien.length*100)+' BGCOLOR=#000000> <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%> <TR>');
for(i=0;i<xlien.length;i++)
{
document.write('<TD BGCOLOR=#006699 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><FONT SIZE=1 FACE="Verdana"><A HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu[i]+'</A></FONT></TD>');
}
document.write('</TR> <TR> <TD COLSPAN='+(xlien.length)+' BGCOLOR=#B6B6B6 HEIGHT='+hauteurcadre+' VALIGN=top><ilayer id="dynamenu31" width=100% height='+hauteurcadre+'><layer id="dynamenu32" width=100% height='+hauteurcadre+'><div id="dynamenu33"> </div></layer></ilayer></TD> </TR></TABLE></TD></TR></TABLE>');
function colorIt(tditem)
{
if(document.all)
{
document.all.td0.style.background='#006699';
document.all.td1.style.background='#006699';
document.all.td2.style.background='#006699';
document.all.td3.style.background='#006699';
document.all.td4.style.background='#006699';
document.all.td5.style.background='#006699';
document.all.td6.style.background='#006699';
document.all.td7.style.background='#006699';
document.all.td8.style.background='#006699';
document.all.td9.style.background='#006699';
document.all.td10.style.background='#006699';
document.all.td11.style.background='#006699';
document.all.td12.style.background='#006699';
tditem.style.background='#B6B6B6';
}
else if(document.getElementById)
{
document.getElementById("td0").style.background='#006699';
document.getElementById("td1").style.background='#006699';
document.getElementById("td2").style.background='#006699';
document.getElementById("td3").style.background='#006699';
document.getElementById("td4").style.background='#006699';
document.getElementById("td5").style.background='#006699';
document.getElementById("td6").style.background='#006699';
document.getElementById("td7").style.background='#006699';
document.getElementById("td8").style.background='#006699';
document.getElementById("td9").style.background='#006699';
document.getElementById("td10").style.background='#006699';
document.getElementById("td11").style.background='#006699';
document.getElementById("td12").style.background='#006699';
tditem.style.background='#B6B6B6';
}
}
function MajMenu(menu)
{
which = xlien[menu];
if (document.layers){
document.dynamenu31.document.dynamenu32.document.write('<FONT SIZE=1 FACE="Verdana">'+which+'</FONT>')
document.dynamenu31.document.dynamenu32.document.close()
}
else if (document.getElementById)
{
document.getElementById("dynamenu33").innerHTML = '<CENTER><FONT SIZE=1 FACE="Verdana, Arial"><B>'+which+'</B></FONT></CENTER>';
}
else if (document.all){
dynamenu33.innerHTML=' '
dynamenu33.innerHTML='<FONT SIZE=1 FACE="Verdana">'+which+'</FONT>';
}
}
if (document.getElementById)
colorIt(document.getElementById("td0"));
else if (document.all){
colorIt(document.all.td0);
}
MajMenu(0);
En gros j'ai rajouté des 'xmenus', (j'ai pas encore abordé les sous-menus), mais j'ai pas capté comment on définissait le nombre de cases du tableau...
Merci !
 
|
[ Posté par Tonysurf ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 17-11-2003 à 18:10 | 484 messages ]
  rejoute :
xlien[6] = ''
xlien[7] = ''
xlien[8] = ''
xlien[9] = ''
xlien[10] = ''
xlien[11] = ''
|
|
Services email :
  Vous devez vous identifier pour profiter des services par email du forum.
|

|