Récupération de variable à partir d'un fichier .txt - HTML/CSS - Programmation
Marsh Posté le 08-07-2005 à 10:06:07
Non je peux utiliser éventuellement le java ou un autre language de programation mais il faut à tout prix que la variable contenue dans le fichier .txt soit récupérée dans le code source de ma page web.
Marsh Posté le 08-07-2005 à 10:44:20
enfin je sais mais ton menu il vient d'ou ? parce que si ce n'est que du texte, et que tu as le droit à php, inclues ton menu dans toutes les pages ...
Marsh Posté le 08-07-2005 à 10:47:51
Ca vient d'un logiciel qui génère des menus au format dhtml Ca s'appelle Sothink DHTMLMenu
Voila le code type de mon menu :
<script type="text/javascript" language="JavaScript1.2">
<!--
stm_bm(["bmgmfhr",430,"","blank.gif",0,"","",0,0,19,19,100,1,0,0,"","100%",83886139],this);
stm_bp("p0",[0,4,0,0,8,2,4,7,100,"",-2,"",-2,91,0,0,"#999999","#cccccc","newline1.gif",3,0,0,"#b8cddb"]);
stm_ai("p0i0",[6,1,"#ffe552","",-1,-1,0]);
stm_ai("p0i1",[0," Overview","","",-1,-1,0,"*","_self","","Build perfect popup menus","","",4,0,0,"","",7,7,0,0,1,"#a8b9c6",1,"#d7f1ff",1,"","",2,3,0,0,"#ffffff","#ffffff","#996600","#ffff00","bold 11px Verdana","bold 11px Verdana",0,0]);
stm_bp("p1",[1,4,-4,6,5,2,4,0,100,"progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,enabled=0,Duration=0.80)",-2,"",-2,30,0,0,"#999999","#f4c859","",3,0,0,"#d0d0d0 #d0d0d0 #d0d0d0 #d0d0d0"]);
stm_aix("p1i0","p0i1",[0," Overview ","","",-1,-1,0,"*","_self","","Build perfect popup menus","","",4,0,0,"","",0,0,0,0,1,"#cfd5d8"]);
stm_aix("p1i1","p1i0",[0," Overview"]);
stm_aix("p1i2","p1i1",[]);
stm_ep();
stm_aix("p0i2","p0i0",[]);
stm_aix("p0i3","p0i1",[0," Features List","","",-1,-1,0,"*","_self","","View features"]);
stm_bpx("p2","p1",[]);
stm_aix("p2i0","p1i0",[0," Features List ","","",-1,-1,0,"*","_self","","View features"]);
stm_aix("p2i1","p2i0",[0," Features List"]);
stm_aix("p2i2","p2i1",[]);
stm_ep();
stm_aix("p0i4","p0i0",[]);
stm_aix("p0i5","p0i1",[0," Download","","",-1,-1,0,"*","_self","","Download the full functional trial version"]);
stm_bpx("p3","p1",[]);
stm_aix("p3i0","p1i0",[0," Download ","","",-1,-1,0,"*","_self","","Download the full functional trial version"]);
stm_aix("p3i1","p3i0",[0," Download"]);
stm_aix("p3i2","p3i1",[]);
stm_ep();
stm_aix("p0i6","p0i0",[]);
stm_ep();
stm_em();
//-->
</script>
c'est ça que je veux mettre dans mon fichier .txt pour pouvoir changer mon menu facilement
Marsh Posté le 08-07-2005 à 10:50:09
C'est quoi ce menu foireux ?
Sinon, fonction include en php ...
Marsh Posté le 08-07-2005 à 10:51:53
C'est le logiciel qui le génère automatiquement.
Moi je suis vraiment pas fortiche alors je comprend pas , je copie juste ça dans mon code source de mes pages et ça marche!!
Marsh Posté le 08-07-2005 à 11:02:54
merci beaucoup pour ton coup de pouce avec la fonction include j'aurais jamais trouvé seul!!
Marsh Posté le 08-07-2005 à 11:04:02
appelle ca menu.txt, ca sera plus parlant
Marsh Posté le 07-07-2005 à 21:04:04
Voila j'ai un petit problème:
pour créer un menu, et pouvoir le mettre à jour facilement je voudrais pouvoir récupérer une variable à partir d'un fichier .txt et la charger dans mon code source de mes pages web.
Ainsi pour changer mon menu, je n'aurais qu'à modifier mon fichier .txt et ceci me fera également gagner de la place.
[#ff0e00]Est-ce quelqu'un sait si cela est possible et comment fait-on?[/#0eff00]
Merci d'avance