joyeux noel a tous
slt a tous, voila une petite visite pour demander un p d'aide.
est oui je tente de voir mais rien a faire !!!
la page : http://www.vente-location.fr/search....=vent1&vente=1
voila, donc mon script doit faire apparaitre un alt dans un div et ci clik decu l'inclure dans un input.
pour etre plus parlant :
le javascript :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <area shape=POLY coords="180,144,193,151,191,160,180,159" href="javascript:choixDep('01');" alt="(01) Ain" onmouseover="re(this)"> <area shape=POLY coords="145,44,143,66,151,72,152,60,157,53,157,43" href="javascript:choixDep('02');" alt="(02) Aisne" onmouseover="re(this)"> <area shape=POLY coords="131,146,136,151,140,152,152,154,160,146,155,142,154,140,147,142,142,136" href="javascript:choixDep('03');" alt="(03) Allier"; onmouseover="re(this)"> <area shape=POLY coords="198,220,196,217,194,214,198,209,215,200,214,206,215,215,209,218,205,220" href="javascript:choixDep('04');" alt="(04) Alpes-de-Haute-Provence" onmouseover="re(this)"> <area shape=POLY coords="209,183,205,190,196,195,193,200,196,206,212,196,219,191" href="javascript:choixDep('05');" alt="(05) Hautes-Alpes" onmouseover="re(this)"> <area shape=POLY coords="221,223,217,219,217,210,230,208,231,215,226,222,224,225" href="javascript:choixDep('06');" alt="(06) Alpes-Maritimes" onmouseover="re(this)"> <area shape=POLY coords="161,193,174,179,175,191,173,205,166,204" alt="(07) Ardèche" href="javascript:choixDep('07');" onmouseover="re(this)"> <area shape=POLY coords="172,62,166,60,161,57,162,46,169,43,171,41,174,49,177,55,170,60" href="javascript:choixDep('08');" alt="(08) Ardennes" onmouseover="re(this)"> <area shape=POLY coords="103,254,113,253,120,253,118,245,111,239,101,247" href="javascript:choixDep('09');" alt="(09) Ariège" onmouseover="re(this)">
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 <script> function re(o) { fr_legend.innerHTML=o.alt; } <!-- Begin function choixDep(dp){ if(document.search.departement.value==""){document.search.departement.value=dp }else if((document.search.departement.value!="")&&(document.search.departementdeux.value=="")){document.search.departementdeux.value=dp }else if((document.search.departement.value!="")&&(document.search.departementdeux.value!="")&&(document.search.departementtrois.value=="")){document.search.departementtrois.value=dp }else if((document.search.departement.value!="")&&(document.search.departementdeux.value!="")&&(document.search.departementtrois.value!="") &&(document.search.departementquatre.value=="")){document.search.departementquatre.value=dp }else if((document.search.departement.value!="")&&(document.search.departementdeux.value!="")&&(document.search.departementtrois.value!="") &&(document.search.departementquatre.value!="") &&(document.search.departement.value!="")){document.search.departement.value=dp }}//--> </script>
le div ou sa apparait parfaitement "pas de bleme" :
Code : Sélectionner tout - Visualiser dans une fenêtre à part <div id=fr_legend style="font-weight:bold;display:block; width:200;padding-left:5px"> </div>
les input qui merde :
alors sur la page avec ie6 sa m'indique que la valeur un fois cliké est NULL ! c la merde, a mon avie je ratttté quelque choise de simple
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <input name="departement" id="departement" size=15 type="text"> <input name="departementdeux" id="departementdeux" size=15 type="text"><br> <input name="departementtrois" id="departementtrois" size=15 type="text"> <input name="departementquatre" id="departementquatre" size=15 type="text">
remarquez vous une ou des erreurs ?????
...
Partager