cs_chris tuckers
Messages postés137Date d'inscriptionjeudi 8 septembre 2005StatutMembreDernière intervention 7 mars 2008
-
22 janv. 2008 à 09:51
PetoleTeam
Messages postés3426Date d'inscriptionlundi 26 décembre 2005StatutMembreDernière intervention14 janvier 2011
-
23 janv. 2008 à 17:27
Bonjour tout le monde. N'étant pas un professionnel du javascript et du developpement en général, j'espere que je ne me suis pas trompé de rubrique.....
J'ai developpé un menu en javascript et j'ai un petit probleme avec.
Pour le titre du menu, le lien fonctionne très bien, par contre, pour le(s) sous menus, c'est une autre histoire, il ne se passe strictement rien du tout.
Voici le code de mon menu :
var isHorizontal=1;
var pathPrefix_img="";
var pathPrefix_link="";
var saveNavigationPath=1;
var showByClick=0;
var pressedItem=-1;
var blankImage=sitepref+"/modules/mod_ngmenu/images/blank.gif";
var noWrap=1;
var dm_writeAll=1;
var smHidePause=800;
var smShowPause=200;
var smColumns=1;
var smOrientation=0;
var smViewType=0;
var dmRTL=0;
var itemCursor="pointer";
var itemTarget="";
var statusString="link";
var menuWidth="613px";
var menuHeight="24px";
var smWidth="";
var smHeight="";
var iconTopWidth=127;
var iconTopHeight=24;
var iconWidth=117;
var iconHeight=30;
var arrowWidth=7;
var arrowHeight=7;
var absolutePos=0;
var posX=0;
var posY=0;
var topDX=0;
var topDY=0;
var DX=0;
var DY=0;
var menuBackColor="#FFFFFF";
var menuBorderStyle="solid";
var menuBorderColor="#C0AF62";
var menuBorderWidth=0;
var itemBackColor=["#84C6D4","#D9D9D9","#FFCC99"];
var itemBorderStyle=["solid","solid","solid"];
var itemBorderWidth=0;
var itemBorderColor=["#FCEEB0","#339999","#CC9900"];
var itemAlignTop="center";
var itemAlign="left";
var itemSpacing=1;
var itemPadding="0px 0px 0px 0px";
var fontStyle="bold 12px verdana,arial,helvetica,sans-serif";
var fontColor=["#FFFFFF","#000000","#996600"];
var fontDecoration=["none","none","none"];
var fontColorDisabled="";
var separatorVImage="";
var separatorImage="";
var separatorWidth="100%";
var separatorHeight="3";
var separatorAlignment="left";
var separatorVWidth="5";
var separatorVHeight="100%";
var separatorPadding="0px 0px 0px 0px";
var arrowImageMain=["","",""];
var arrowImageSub=["","",""];
var menuBackImage="";
var menuBackRepeat="repeat";
var itemBackImage=["","",""];
var transparency="100";
var transition=0;
var transDuration=0;
var transDuration2=0;
var shadowLen=0;
var shadowColor="";
var shadowTop=0;
var cssStyle=0;
var cssSubmenu="";
var cssItem=["","",""];
var cssItemText=["","",""];
var subMenuAlign="left";
var keystrokes=0;
var dm_focus=1;
var dm_actKey=113;
var dmObjectsCheck=1;
var hideFlashObjects=0;
var dynamic=0;
var smSmartScroll=1;
var smHideOnClick=1;
var floatable=0;
var floatIterations=6;
var floatableX=1;
var floatableY=1;
var movable=0;
var moveWidth=12;
var moveHeight=20;
var moveColor="#DECA9A";
var moveImage="";
var moveCursor="default";
var smMovable=0;
var closeBtnW=15;
var closeBtnH=15;
var closeBtn="";
var macIEoffX=10;
var macIEoffY=15;
var dmAJAX=0;
var dmAJAXCount=0;
var smIsTabular=1;
var itemStyles = [
["itemBackColor=#84C6D4,#84C6D4,#84C6D4","itemWidth=113px","itemBorderWidth=0","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=bold 12px verdana,arial,helvetica,sans-serif","fontColor=#FFFFFF,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#84C6D4,#84C6D4,#84C6D4","itemWidth=113px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=bold 12px verdana,arial,helvetica,sans-serif","fontColor=#FFFFFF,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#84C6D4,#84C6D4,#84C6D4","itemWidth=113px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=bold 12px verdana,arial,helvetica,sans-serif","fontColor=#FFFFFF,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#84C6D4,#84C6D4,#84C6D4","itemWidth=113px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=bold 12px verdana,arial,helvetica,sans-serif","fontColor=#FFFFFF,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#CACACA,#CACACA,#CACACA","itemWidth=195px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=bold 12px verdana,arial,helvetica,sans-serif","fontColor=#FFFFFF,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#CACACA,#CACACA,#CACACA","itemWidth=113px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=bold 12px verdana,arial,helvetica,sans-serif","fontColor=#FFFFFF,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=113px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 12px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#84C6D4,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=bold 12px verdana,arial,helvetica,sans-serif","fontColor=#FFFFFF,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
["itemBackColor=#FFFFFF,#84C6D4,#84C6D4","itemWidth=112px","itemBorderWidth=1","itemBorderStyle=none,none,none","itemBorderColor=#CCCCCC,#CCCCCC,#CCCCCC","fontStyle=normal 11px verdana,arial,helvetica,sans-serif","fontColor=#000000,#FFFFFF,#FFFFFF","fontDecoration=none,none,none"],
];
Comme je n'ai pas trop compris le code, j'ai preferer vous le mettre en entier. Donc ma question, comment faire pour que les liens du sous menus fonctionnent...
nickadele
Messages postés1251Date d'inscriptionmercredi 7 août 2002StatutModérateurDernière intervention10 avril 2013 23 janv. 2008 à 10:47
Bonjour,
ton message : "J'ai developpé un menu en javascript et j'ai un petit probleme avec"
difficile de comprendre que tu ne comprends pas ton propre code !!!
Nickadele
----------------------------------------------
non, ma belle ne s'appel pas Adèle
PetoleTeam
Messages postés3426Date d'inscriptionlundi 26 décembre 2005StatutMembreDernière intervention14 janvier 201117 23 janv. 2008 à 17:27
Bonjour,
Mets nous le lien vers le site ou tu exploites ce menu, en jettant un oeil, on pourra te dire vers quelles sources t'orienter et qui soient maintenable faicilement, c'est le mieux que je puisse te faire...
;O)