J'ai un menu déroulant en javascript dont le menu son définit grace à ce fichier:
var MENU_ITEMS =(
("Municipalité", HREF="municipalite.htm",
["Petit historique", HREF="municipalite.htm"],
["Situation géographique", HREF="geo.htm"],
["Population", HREF="pop.htm"],
["Ressources naturelles", HREF="ressources.htm"],
["Patrimoine", HREF="patrimoine.htm"],
["Vitrine technologique", HREF="techno.htm"]
),
("Paroisse", HREF="paroisse.htm",
["Petit historique", HREF="paroisse.htm"],
["Biens de la fabrique", HREF="biens.htm"],
["Livre du 75ème", HREF="75eme.php"],
["Recherche d'un avenir", HREF="avenir.htm"]
],
("École", HREF="ecole.htm",
["Petit historique", HREF="ecole.htm"],
["École et communauté", HREF="communaute.htm"],
["Collaboration", HREF="collaboration.htm"],
["Travaux d'élèves", HREF="eleves.htm"],
),
("Forêt", HREF="foret.htm",
["Évolution et avenir", HREF="etat.htm"],
["Scierie actuelle", HREF="scierie.htm"],
["Lots privés", HREF="lots.htm"],
["Plantations", HREF="plantations.htm"]
),
("Agriculture", HREF="agriculture.htm",
["Production laitière", HREF="lait.htm"],
["Production bovine", HREF="boeuf.htm"],
["Production ovine", HREF="poulet.htm"],
["Production porcine", HREF="porc.htm"]
),
("Entreprises", HREF="entreprises.htm",
["new item", HREF="entreprises.htm"],
["new item", HREF="entreprises.htm"],
["new item", HREF="entreprises.htm"]
),
("O.B.N.L.", HREF="obnl.htm",
["new item", HREF="obnl.htm"],
["new item", HREF="obnl.htm"]
),
("Bloc-Notes", HREF="blocnote.htm",
),
("Liens", HREF="liens.htm",
)
);
J'appele ce fichier de cette manière
<script language="JavaScript" src="menu.js"></script>
La question est la suivant:
Au endroit où c'est écrit new item je doit entré les nom et les pages qu'une fonction php me revoie.
Comment je fait pour envoyer à ce fichier (menu.js) des paramètres et comment je fait pour récupérer ces paramètres.
Merci pour votre aide
Blackmetal
Modifié le 09 Feb 2005 - 22:26
var MENU_ITEMS =(
("Municipalité", HREF="municipalite.htm",
["Petit historique", HREF="municipalite.htm"],
["Situation géographique", HREF="geo.htm"],
["Population", HREF="pop.htm"],
["Ressources naturelles", HREF="ressources.htm"],
["Patrimoine", HREF="patrimoine.htm"],
["Vitrine technologique", HREF="techno.htm"]
),
("Paroisse", HREF="paroisse.htm",
["Petit historique", HREF="paroisse.htm"],
["Biens de la fabrique", HREF="biens.htm"],
["Livre du 75ème", HREF="75eme.php"],
["Recherche d'un avenir", HREF="avenir.htm"]
],
("École", HREF="ecole.htm",
["Petit historique", HREF="ecole.htm"],
["École et communauté", HREF="communaute.htm"],
["Collaboration", HREF="collaboration.htm"],
["Travaux d'élèves", HREF="eleves.htm"],
),
("Forêt", HREF="foret.htm",
["Évolution et avenir", HREF="etat.htm"],
["Scierie actuelle", HREF="scierie.htm"],
["Lots privés", HREF="lots.htm"],
["Plantations", HREF="plantations.htm"]
),
("Agriculture", HREF="agriculture.htm",
["Production laitière", HREF="lait.htm"],
["Production bovine", HREF="boeuf.htm"],
["Production ovine", HREF="poulet.htm"],
["Production porcine", HREF="porc.htm"]
),
("Entreprises", HREF="entreprises.htm",
["new item", HREF="entreprises.htm"],
["new item", HREF="entreprises.htm"],
["new item", HREF="entreprises.htm"]
),
("O.B.N.L.", HREF="obnl.htm",
["new item", HREF="obnl.htm"],
["new item", HREF="obnl.htm"]
),
("Bloc-Notes", HREF="blocnote.htm",
),
("Liens", HREF="liens.htm",
)
);
J'appele ce fichier de cette manière
<script language="JavaScript" src="menu.js"></script>
La question est la suivant:
Au endroit où c'est écrit new item je doit entré les nom et les pages qu'une fonction php me revoie.
Comment je fait pour envoyer à ce fichier (menu.js) des paramètres et comment je fait pour récupérer ces paramètres.
Merci pour votre aide
Blackmetal
Modifié le 09 Feb 2005 - 22:26