







|
|
|
 |
| > menu déroulant ne fonctionne pas sous firefox |
[ Posté par silversky ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 26-10-2009 à 07:59 | 2 messages ]
  Bonjour, j'ai utilisé un script provenant de votre site. Il fonctionne super bien avec IE mais pas sous Firefox.
Ce script me plaît énormément et je souhaiterais régulariser ce problème.
Pouvez-vous m'aider s'il vous plait?
voici le script :
bgcolor='#000000';
bgcolor2='#000000';
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:15; left:-130px ')
document.write('#topgauche { position:absolute; z-index:10; }')
document.write('A:hover.ejsmenu {color:#FFFFFF; text-decoration:none; }')
document.write('.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[4] = new Array;
zlien[5] = new Array;
zlien[6] = new Array;
zlien[7] = new Array;
zlien[8] = new Array;
zlien[0][0] = '<A HREF="news.html" CLASS=ejsmenu>2009</A>';
zlien[0][1] = '<A HREF="news2010.html" CLASS=ejsmenu>2010</A>';
zlien[1][0] = '<A HREF="bio.html" CLASS=ejsmenu>Le groupe</A>';
zlien[1][1] = '<A HREF="adam.html" CLASS=ejsmenu>Adam Gontier</A>';
zlien[1][2] = '<A HREF="neil.html" CLASS=ejsmenu>Neil Sanderson</A>';
zlien[1][3] = '<A HREF="brad.html" CLASS=ejsmenu>Brad Walst</A>';
zlien[1][4] = '<A HREF="barry.html" CLASS=ejsmenu>Barry Stock</A>';
zlien[2][0] = '<A HREF="albums.html" CLASS=ejsmenu>Albums</A>';
zlien[2][1] = '<A HREF="singles.html" CLASS=ejsmenu>Singles</A>';
zlien[2][2] = '<A HREF="dvd.html" CLASS=ejsmenu>DVD</A>';
zlien[2][3] = '<A HREF="paroles.html" CLASS=ejsmenu>Paroles</A>';
zlien[2][4] = '<A HREF="partitions.html" CLASS=ejsmenu>Partitions</A>';
zlien[3][0] = '<A HREF="tour2009.html" CLASS=ejsmenu>2009</A>';
zlien[3][1] = '<A HREF="tour2010.html" CLASS=ejsmenu>2010</A>';
zlien[4][0] = '<A HREF="officielle.html" CLASS=ejsmenu>Photos Officielles</A>';
zlien[4][1] = '<A HREF="divers.html" CLASS=ejsmenu>Photos diverses</A>';
zlien[4][2] = '<A HREF="screenshots.html" CLASS=ejsmenu>Screenshots</A>';
zlien[5][0] = '<A HREF="liensofficiels.html" CLASS=ejsmenu>Officiels</A>';
zlien[5][1] = '<A HREF="liensfans.html" CLASS=ejsmenu>Fans</A>';
zlien[5][2] = '<A HREF="lienspersonnel.html" CLASS=ejsmenu>Personnel</A>';
zlien[6][0] = '<A HREF="articles.html" CLASS=ejsmenu>Articles</A>';
zlien[6][1] = '<A HREF="interviews.html" CLASS=ejsmenu>Interviews</A>';
zlien[7][0] = '<A HREF="videos.html" CLASS=ejsmenu>Videos</A>';
zlien[7][1] = '<A HREF="audios.html" CLASS=ejsmenu>Audios</A>';
zlien[8][0] = '<A HREF="mur.html" CLASS=ejsmenu>Le mur</A>';
if(document.getElementById)
{
skn = document.getElementById("topdeck").style
skn.left = -130;
}
function pop(msg,pos)
{
skn.visibility = "hidden";
a=true
skn.top = pos;
var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=100><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=15><FONT SIZE=1 FACE=\"Verdana\"> "+msg[pass]+"</FONT></TD></TR>";
pass++;
}
content += "</TABLE></TD></TR></TABLE>";
document.getElementById("topdeck").innerHTML = content;
skn.visibility = "visible";
}
function kill()
{
if(document.getElementById)
skn.visibility = "hidden";
}
document.onclick = kill;
if(document.getElementById)
{
document.write('<DIV ID=topgauche><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=100 HEIGHT=160><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=160>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[0],0)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white"FACE="Verdana">News</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[1],20)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white"FACE="Verdana">Biographie</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[2],40)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white" FACE="Verdana">Discographie</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[3],60)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white" FACE="Verdana">Tour</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[4],80)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white" FACE="Verdana">Galerie</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[5],100)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white" FACE="Verdana">Liens</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[6],120)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white" FACE="Verdana">Presse</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[7],140)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white" FACE="Verdana">Mediatheque</FONT></TD></tr>')
document.write('<tr><TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[8],160)" onMouseOut="this.style.background=\''+bgcolor+'\'" CLASS=ejsmenu><FONT SIZE=1 color="white" FACE="Verdana">Fanzone</FONT></TD></tr>')
document.write('</TABLE></TD></TR></TABLE></DIV>')
}
document.write('</div>');
 
|
[ Posté par #:-{)% ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 26-10-2009 à 16:40 | 2548 messages ]
  Alut
je n'ai pas IE et je ne sais pas comment il se comporte, mais a priori, çà fonctionne
sauf pour ton .popper qui est en left:-130px et donc hors de la page, à moins que tu n'ai mis ton script dans 1 div à droite
si c'est le cas, et que çà ne marche tjrs pas, regarde ton doctype, si il est d'1 type strict (xhtml) ou supérieur à 4.01 (html), alors il faut rajouter des px par là ==>
skn.left = -130; ==> skn.left = -130px;
...
skn.top = pos; ==> skn.top = pos+"px";
Atchao
________________ Oubli du BBcode, rééditer!
barbe-sauvage ex Mozopiens devenu renard de feu... et un peu konq sur les bords
Les OG et les DR, je M pas :/
|
|
Services email :
  Vous devez vous identifier pour profiter des services par email du forum.
|

|