1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
function AffMenu(Level,Num){
var i,ColorOut,ColorOver,img;
ColorOut=(Level)?SMOut:MOut;
ColorOver=(Level)?SMOver:MOver;
img=(Level)?SMimg:Mimg;
var haut = Hauteur;
document.getElementById("ListeLvl"+Level).style.top=Num*haut+DivTop;
Affichage="";
if(this.State>0){
Affichage='<table class=\'menu\' bgColor='+ColorOut+' cellpadding=0 cellspacing=0 border=0 id=\"menuJs\" >';
for(i=0;i<this.nb;i++){
Affichage+='<tr border=0 bgColor=\'';
Affichage+=this.SMenu[i].State>0?ColorOver:ColorOut;
Affichage+='\' ';
Affichage+='onMouseOut=\''+this.SMenu[i].ID+'.State>0?this.setAttribute("bgColor","'+ColorOver+'"):this.setAttribute("bgColor","'+ColorOut+'");';
Affichage+=Timer?'Time=setTimeout("'+Open.substring(0,LgID)+'.AffB(0,0)",'+Timer+')\' ':'\' ';
Affichage+='onMouseOver=\'this.setAttribute("bgColor","'+ColorOver+'");';
Affichage+=Timer?'clearTimeout(Time);':'';
Affichage+=this.SMenu[i].Lvl(0)?this.SMenu[i].ID+'.AffB('+(Level+1)+','+(Num+i)+')\' ':'\' ';
Affichage+='><td width='+(Largeur-12)+' height='+Hauteur+' nowrap>';
Affichage+=this.SMenu[i].Titre;
Affichage+='</td><td width=10 valign=center>';
Affichage+=this.SMenu[i].nb?img:'';
Affichage+='</td></tr>';
}
Affichage+='</table>';
}
document.getElementById("ListeLvl"+Level).innerHTML=Affichage;
document.getElementById("ListeLvl"+Level).style.visibility="visible";
} |
Partager