
Je suis étudiant en biologie.j'ai pensé à réaliser des pages web pour ma promotion et voila je me heurte à un sérieux problème avec un menu déroulant que j'ai télechargé sur le net.Il n'est compatible qu'avec IE.Je voudrai le rendre compatible avec les autres navigateurs.Pouvez vous m'aider à trouver la solution ou me proposer un scripte de même genre?Celui-ci me plait beaucoup.En voici le code:
<html>
<head>
<title>Acceuil
</title>
</head>
<BODY bgcolor="#f5d7a4">
<p align="center">
<SCRIPT LANGUAGE="JavaScript">
/* A REGLER MANUELLEMENT SI LE CADRE EST TROP PETIT */
hauteurcadre = 70;
xmenu = new Array;
xlien = new Array;
xmenu[0] = 'Présentation';
xmenu[1] = 'Club environement ';
xmenu[2] = 'Forum';
xmenu[3] = 'MST/SIDA';
xmenu[4] = 'Sites utiles';
xmenu[5] = 'Détente';
xmenu[6] = 'Page du lycéen';
xmenu[7] = 'Barbillard';
xmenu[8] = 'Barbillard';
xlien[0] = ''
xlien[1] = ''
xlien[2] = ''
xlien[3] = ''
xlien[4] = ''
xlien[5] = ''
xlien[6] = ''
xlien[7] = ''
xlien[8] = ''
xlien[6] += '<A HREF="Page du lycéen.html"target="Principal" CLASS=menudyn3>Sommaire</A>'; // Remplacer JavaScript: Par votre page (Sur toutes les lignes ci-dessous)
xlien[6] += ' | '
xlien[6] += '<A HREF="Exercices.html" target="Principal"CLASS=menudyn3>Exercices</A>';
xlien[6] += ' | '
xlien[6] += '<A HREF="Cours.html " target="Principal" CLASS=menudyn3>Cours</A>';
xlien[6] += ' | '
xlien[6] += '<A HREF="QCM.html" target="Principal" CLASS=menudyn3>QCM</A>';
xlien[0] += '<A HREF="UYI.html" target="Principal"CLASS=menudyn3>Université de Yaoundé I</A>';
xlien[0] += ' | '
xlien[0] += '<A HREF="UYI.html"target="Principal" CLASS=menudyn3>Ecole Normale Supérieure</A>';
xlien[0] += ' | '
xlien[0] += '<A HREF="Enseignants.html"target="Principal" CLASS=menudyn3>Enseignants du département</A>';
xlien[0] += ' | '
xlien[0] += '<A HREF="Annuaire1.html"target="Principal" CLASS=menudyn3>Notre promotion</A>';
xlien[2] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>ENSBIO</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="JavaScript:" target="Principal"CLASS=menudyn3>Lycéen</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Autres</A>';
xlien[3] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Chlamediae</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>syphilys</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>gonococcie</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>blénoragie</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>herpes</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>...</A>';
xlien[4] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Academique </A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Bourses </A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="Recherche.html"target="Principal" CLASS=menudyn3>Recherche web </A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Santé </A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Ambassades</A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Ministères </A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>l`étudiant et son droit </A>';
xlien[5] += '<A HREF="Jeux.html"target="Principal" CLASS=menudyn3>Sommaire</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="Oracle.html"target="Principal" CLASS=menudyn3>Oracle</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="Age.html"target="Principal" CLASS=menudyn3>Age magique</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="Naissance.html"target="Principal" CLASS=menudyn3>Jour de naissance</A>';
xlien[5] += ' | ';
xlien[5] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Dévinettes</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Proverbes</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Football</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Autres</A>';
xlien[1] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Fonctionnement</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Communiqués</A>';
xlien[7] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Resultats concours</A>';
xlien[7] += ' | '
xlien[7] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>résultats session normale</A>';
xlien[7] += ' | '
xlien[7] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Communiqués</A>';
xlien[8] += '<A HREF="JavaScript:"target="Principal" CLASS=menudyn3>Communiqués</A>';
document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:blue; text-decoration:none;}\nA:hover.menudyn3 {color:white;text-decoration:none;}\n</STYLE>');
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(xlien.length*100)+' BGCOLOR= > <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=97%> <TR>');
for(i=0;i<xlien.length;i++)
{
document.write('<TD BGCOLOR=#1280FC onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><FONT SIZE=1 FACE="Verdana"><B><A HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu+'</A></B></FONT></TD>');
}
document.write('</TR> <TR> <TD COLSPAN='+(xlien.length)+' BGCOLOR=#b59aff 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='#ffa9df';
document.all.td1.style.background='#ffa9df ';
document.all.td2.style.background='#ffa9df';
document.all.td3.style.background='#ffa9df';
document.all.td4.style.background='#ffa9df';
document.all.td5.style.background='#ffa9df';
document.all.td6.style.background='#ffa9df';
document.all.td7.style.background='#ffa9df';
tditem.style.background='#ffc2df';
}
}
function MajMenu(menu)
{
which = xlien

if (document.all){
dynamenu33.innerHTML=' '
dynamenu33.innerHTML='<FONT SIZE=1 FACE="Verdana"><B>'+which+'</B></FONT>';
}
else if (document.layers){
document.dynamenu31.document.dynamenu32.document.write('<FONT SIZE=1 FACE="Verdana"><B>'+which+'</B></FONT>')
document.dynamenu31.document.dynamenu32.document.close()
}
}
colorIt(document.all.td0);
MajMenu(0);
</SCRIPT>
</p>
</BODY>
</html>
NB:je comprends le HTML mais je ne comprends pas grand chose au javascript.
Merci de m'aider