Bonjour,
J'ai un problème d'affichage avec mon menu dynamique (code en dessous).
Quand le menu se déroule sur une balise <select> ou <input>, ce sont ces balises qui "prennent le dessus". C'est à dire que l'affichage ne se fait pas sur des listes déroulantes, etc...
Ca fait un "trou" dans le menu!!
Est-ce que c'est un bug d'IE ou de javascript ???
Y a-t-il une solution ???
Aidez moi SVP car je ne sais vraiment pas quoi faire.
Merci d'avance
Benjamin
//bgcolor='#006699';
//bgcolor2='#6699CC';
bgcolor='#9370DB';
bgcolor2='#E9967A';
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }')
document.write('#topgauche { position:absolute; z-index:10; }')
document.write('A:hover.ejsmenu {color:#FFFFFF; text-decoration:none;}')
document.write('A.ejsmenu {color:#FFFFFF; text-decoration:none;}')
document.write('</style>')
document.write('<div style="position:relative;height:25"><DIV class=popper id=topdeck></DIV>');
/*
SCRIPT EDITE SUR L'EDITEUR JAVACSRIPT
http://www.editeurjavascript.com
*/
/*
LIENS
*/
zlien =
new Array;
zlien[0] =
new Array;
zlien[1] =
new Array;
zlien[2] =
new Array;
zlien[3] =
new Array;
zlien[0][0] = '<a HREF="../GestionIntervention/detail_intervention.asp?numfiche=-1&cible=1" CLASS=ejsmenu TARGET="_parent">Création d\'une Intervention</a>';
zlien[0][1] = '<a HREF="../GestionIntervention/gestion_interventions.asp" CLASS=ejsmenu TARGET="_parent">Gestion des Interventions</a>';
zlien[0][2] = '<a HREF="../GestionIntervention/detail_interventions_semaine.asp" CLASS=ejsmenu TARGET="_parent">Interventions Planifiées</a>';
zlien[1][0] = '<a HREF="../GestionAgent/creation_agent.asp" CLASS=ejsmenu TARGET="_parent">Création / Modification d\'agents</a>';
zlien[1][1] = '<a HREF="../GestionAgent/gestion_tableaux_service.asp" CLASS=ejsmenu TARGET="_parent">Gestion des tableaux de service</a>';
zlien[1][2] = '<a HREF="../GestionAgent/cadre_elt_variables.asp" CLASS=ejsmenu TARGET="_parent">EVS</a>';
zlien[1][3] = '<a HREF="" CLASS=ejsmenu TARGET="_parent">Recherche acteur ABE</a>';
zlien[1][4] = '<a HREF="../GestionAgent/detail_activite.asp" CLASS=ejsmenu TARGET="_parent">Détail Activité</a>';
zlien[1][5] = '<a HREF="../GestionAgent/detail_projet.asp" CLASS=ejsmenu TARGET="_parent">Détail par projet</a>';
zlien[1][6] = '<a HREF="../InfosUtiles/verif_agent.asp" CLASS=ejsmenu TARGET="_parent">Infos Agent</a>';
zlien[2][0] = '<a HREF="../GestionContrat/creation_contrat.asp" CLASS=ejsmenu TARGET="_parent">Gestion des contrats</a>';
zlien[2][1] = '<a HREF="../GestionCompte/gestion_comptes.asp" CLASS=ejsmenu TARGET="_parent">Gestion des comptes</a>';
zlien[2][2] = '<a HREF="../GestionProjet/creation_projet.asp" CLASS=ejsmenu TARGET="_parent">Création/Modification de projets</a>';
zlien[2][3] = '<a HREF="../GestionContrat/recherche_liste_postes_contrat.asp" CLASS=ejsmenu TARGET="_parent">Association UT Contrat</a>';
zlien[2][4] = '<a HREF="../ElementReseau/recherche_liste_postes.asp" CLASS=ejsmenu TARGET="_parent">Association UT Domaines</a>';
zlien[3][0] = '<a HREF="" CLASS=ejsmenu TARGET="_parent">Visites</a>';
var
nava = (document.layers);
var
dom = (document.getElementById);
var
iex = (document.all);
if
(nava) { skn = document.topdeck }
else
if (dom) { skn = document.getElementById("topdeck").style }
else
if (iex) { skn = topdeck.style }
skn.top = 24;
function
pop(msg,pos)
{
skn.visibility = "hidden";
a=
true
skn.left = pos;
var
content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=200><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=1>";
pass = 0
while
(pass < msg.length)
{
content += "<TR><TD BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=20><FONT SIZE=1 FACE=\"Arial\"><B> "+msg[pass]+"</B></FONT></TD></TR>";
pass++;
}
content += "</TABLE></TD></TR></TABLE>";
if
(nava)
{
skn.document.write(content);
skn.document.close();
skn.visibility = "visible";
}
else if (dom)
{
document.getElementById("topdeck").innerHTML = content;
skn.visibility = "visible";
}
else if (iex)
{
document.all("topdeck").innerHTML = content;
skn.visibility = "visible";
}
}
function
kill()
{
skn.visibility = "hidden";
}
document.onclick = kill;
document.write('<DIV ID=topgauche><TABLE ALIGN="CENTER" BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=800><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=25 ALIGN="CENTER"><TR>')
document.write('<TD WIDTH=200 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[0],0)" onMouseOut="this.style.background=\''+bgcolor+'\'"><a onClick="return(false)" onMouseOver="pop(zlien[0],0)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Arial"><B>Interventions</B></FONT></a></TD>')
document.write('<TD WIDTH=200 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[1],200)" onMouseOut="this.style.background=\''+bgcolor+'\'"><a onClick="return(false)" onMouseOver="pop(zlien[1],100)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Arial"><B>Agents</B></FONT></a></TD>')
document.write('<TD WIDTH=200 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[2],400)" onMouseOut="this.style.background=\''+bgcolor+'\'"><a onClick="return(false)" onMouseOver="pop(zlien[2],200)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Arial"><B>Comptes, Projets, Contrats</B></FONT></a></TD>')
document.write('<TD WIDTH=200 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[3],600)" onMouseOut="this.style.background=\''+bgcolor+'\'"><a onClick="return(false)" onMouseOver="pop(zlien[3],300)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Arial"><B>Saisie des heures</B></FONT></a></TD>')
document.write('</TR></TABLE></TD></TR></TABLE></DIV></div>')