Probleme insertion code javascript

Fermé
gamermelee Messages postés 110 Date d'inscription mercredi 23 mai 2007 Statut Membre Dernière intervention 11 mars 2008 - 29 mai 2007 à 09:43
gamermelee Messages postés 110 Date d'inscription mercredi 23 mai 2007 Statut Membre Dernière intervention 11 mars 2008 - 29 mai 2007 à 09:52
bonjour je suis debutant en la matiere et j'aurais voulu savoir comment je pouvait inserer du code javascript dans du php.

voici mon code :


var NoOffFirstLineMenus=3;
var FontHighColor="white";
var BorderColor="#aaaacc";
var BorderWidthMain=1;
var BorderWidthSub=1;
var BorderBtwnMain=1;
var BorderBtwnSub=1;
var FontFamily="Arial";
var FontSize=9;
var MenuTextCentered="left";
var MenuCentered="left";
var MenuVerticalCentered="top";
var ChildOverlap=.2;
var ChildVerticalOverlap=.2;
var LeftPaddng=3;
var TopPaddng=2;
var FirstLineHorizontal=1;
var TakeOverBgColor=1;
var FirstLineHorizontal=1;
var MenuWrap=1;
var BaseHref=document.location.href.substring(0,document.location.href.lastIndexOf("/") +1);
var Arrws=[BaseHref+"tri.gif",5,10,BaseHref+"tridown.gif",10,5,BaseHref+"trileft.gif",5,10,BaseHref+"triup.gif",10,5];
var PartOfWindow=1;
var BuildOnDemand=1;

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


Menu1=new Array("Fichier","MyFile.htm","",2,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu1_1=new Array("Nouveau","MyFile.htm","",2,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu1_1_1=new Array("Personne","v_ajout_contact","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu1_1_2=new Array("Societe","v_ajout_contact_societe","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu1_2=new Array("Fermer","index.php","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu2=new Array("Edition","MyFile.htm","",3,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu2_1=new Array("Menu","MyFile.htm","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu2_2=new Array("Menu","MyFile.htm","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu2_3=new Array("Menu","MyFile.htm","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu3=new Array("Menu","MyFile.htm","",2,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu3_1=new Array("Menu","MyFile.htm","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");
Menu3_2=new Array("Menu","MyFile.htm","",0,20,120,"#ffffff","","#000000","","","",-1,-1,-1,"","");





voila ce code est sensé faire un menu dynamique et j'aimerai l'incorporé dans ma page php.

si quelqu'un a la solution ou des idées merci de m'aider svp...
A voir également:

1 réponse

gamermelee Messages postés 110 Date d'inscription mercredi 23 mai 2007 Statut Membre Dernière intervention 11 mars 2008 3
29 mai 2007 à 09:52
le truc c'est que ca serait bien que je puisse faire un appel de fonction ou autre...