







|
|
|
 |
| > Dynamiquement menu :( |
[ Posté par zonephil ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 27-01-2004 à 23:24 | 159 messages ]
  Je sais, je suis fatiguant avec le fameux menu dynamique http://www.editeurjavascript.com/scripts/scripts_nav_12.php Mais j'ai des problèmes qui disons, sont très persistant. J'ai demandé beaucoup d'aide et j'en n'es eu. Mais voila que mon menu était parfait. Mais j'ai eu des problèmes alors j'ai du refaire le plan de mon site. Une fois cela fait, je reprend le même scripts que j'avais pour le menu et je l'ais insérer dans cette nouvelle page, mais voila que plus rien ne fonctionne. J,ai envoyer des demande d'aide à Ghislain mais bon incapable de le faire fonctionner de mon côté. Il a été modifier de tel sorte à que lorsqu'on enlève la souri que le menu ce referme. Du moins, voica le scripts que j'utilise présentement, et qui fonctionne pas:
<div style="position:relative;height:25">
<SCRIPT LANGUAGE=JavaScript>
if(document.getElementById)
document.write('<DIV class=popper id=topdeck></DIV>');
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="ejs_menu_dyn.js"></SCRIPT>
</DIV>
posYmenu = 0;
bgcolor='#E9EAEB'';
bgcolor2='#DDE4EB';
needcenter =false;
if(!needcenter)
posXmenu = 0;
else
{ if (document.all)
posXmenu = (document.body.clientWidth/2)-(600/2);
else
posXmenu = (window.innerWidth/2)-(600/2);
}
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }')
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:10; }')
document.write('A:hover.ejsmenu {color:#4F4F50; text-decoration:none;}')
document.write('A.ejsmenu {color:#4F4F50; text-decoration:none;}')
document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>');
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[0][0] = '<A HREF="home.htm" CLASS=ejsmenu>ACCUEIL</A>';
zlien[0][1] = '<A HREF="map.htm" CLASS=ejsmenu>PLAN DU SITE</A>';
zlien[1][0] = '<A HREF="photographies.htm" CLASS=ejsmenu>PHOTOGRAPHIES</A>';
zlien[1][1] = '<A HREF="wallpapers.htm" CLASS=ejsmenu>WALLPAPERS</A>';
zlien[1][2] = '<A HREF="inforgaphie.htm" CLASS=ejsmenu>INFOGRAPHIE</A>';
zlien[1][3] = '<A HREF="webdesign.htm" CLASS=ejsmenu>WEBDESIGN</A>';
zlien[2][0] = '<A HREF="profil.htm" CLASS=ejsmenu>MON PROFIL</A>';
zlien[2][1] = '<A HREF="moi.htm" CLASS=ejsmenu>PHOTOS DE MOI</A>';
zlien[2][2] = '<A HREF="albumphotos.htm" CLASS=ejsmenu>ALBUM PHOTOS</A>';
zlien[3][0] = '<A HREF="smileys.htm" CLASS=ejsmenu>SMILEYS</A>';
zlien[3][1] = '<A HREF="tuto.htm" CLASS=ejsmenu>PHOTO SHOP</A>';
zlien[3][2] = '<A HREF="scripts.htm" CLASS=ejsmenu>JAVASCRIPTS</A>';
zlien[4][0] = '<A HREF="http://persistant.free.fr/forum/forum.php" CLASS=ejsmenu>LE FORUM</A>';
zlien[4][1] = '<A HREF="livredor.htm" CLASS=ejsmenu>LE LIVRE D\'OR</A>';
zlien[4][2] = '<A HREF="contact.htm" CLASS=ejsmenu>ME REJOINDRE</A>';
zlien[5][0] = '<A HREF="videos.htm" CLASS=ejsmenu>VIDÉOS</A>';
zlien[5][1] = '<A HREF="attention.htm" CLASS=ejsmenu>AVERTISSEMENTS</A>';
zlien[5][2] = '<A HREF="liens.htm" CLASS=ejsmenu>QUELQUES LIENS</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 = posYmenu+24;
function pop(msg,pos)
{
skn.visibility = "hidden";
a=true
skn.left = posXmenu+pos;
var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=150><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=\"Verdana\"> "+msg[pass]+"</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 BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=600><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=25><TR>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[0],this.offsetLeft)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="if (nava) pop(zlien[0],this.x-2)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">ZONEPHIL</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[1],this.offsetLeft)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="if (nava) pop(zlien[1],this.x-2)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">PORTFOLIO</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[2],this.offsetLeft)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="if (nava) pop(zlien[2],this.x-2)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">WEBMASTER</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[3],this.offsetLeft)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="if (nava) pop(zlien[3],this.x-2)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">DIVERS</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[4],this.offsetLeft)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="if (nava) pop(zlien[4],this.x-2)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">CONTACT</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[5],this.offsetLeft)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="if (nava) pop(zlien[5],this.x-2)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">PLUS !</FONT></a></TD>')
document.write('</TR></TABLE></TD></TR></TABLE></DIV>')
if (document.layers)
document.write('</layer>')
else
document.write("</DIV>");
var focus_menu,deuxieme,setattente,delai_disparition_menu=0000;
function attente()
{
if (deuxieme)
{
if (!focus_menu)
{
kill()
}
clearTimeout(setattente);
return;
}
setattente= setTimeout("attente()",delai_disparition_menu);
deuxieme = true;
}
function focus_over()
{
focus_menu = true;
clearTimeout(setattente);
}
function focus_out()
{
focus_menu = false;
deuxieme = false;
attente();
}
Essaiyez le vous même vous verrai qu'il ne fonctionne pas. Sinon, vous pourriez pas me donner ce même scripts, mais que il ce positionne exactement à l'endroit ou je veux, et que le menu descendant ce referme lorsqu'on enlève la souris. AU pire je m'arrange avec les couleur après ya pas de problème. Aidez moi, je suis plus capable.
________________ PhilDunn
 
|
|
Services email :
  Vous devez vous identifier pour profiter des services par email du forum.
|

|