bonjour, j'ai un code qui me "semble" correcte mais ne fonctionne pas sous firefox, quelqu'un pourrait me dire d'ou cela vient ?
le javascript :
l'html :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 function comparez(){ typeformat = document.getElementById('formatype').options[formatype.selectedIndex].value; format = format.options[format.selectedIndex].value; qtephotos=document.getElementById('qtephotos').value fdpphoto=document.getElementById('fdpphoto').checked; fdtphoto=document.getElementById('fdtphoto').checked; gratuitphoto=document.getElementById('gratuitphoto').checked; }
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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Format</td> <td>Quantité</td> <td>Options</td> <td align="center" valign="middle"> </td> </tr> <tr> <td width="47%"><select name="formatype" id="formatype" title="différent format photos" onchange="listeformat(this.options[this.selectedIndex].value);"> <option value="num" selected="selected">Numérique</option> <option value="ana" >Argentique</option> <option value="post" >Grands formats</option> <option value="pan" >Panoramique</option> </select> <div id='divformat' style='display:inline'> <select name="format" id="format" title="forumat de developpement photo"> <option value='2'>6 x 8</option><option value='5'>10 x 13</option><option value='7' selected="selected">11 x 15</option><option value='8'>13 x 17</option><option value='11'>15 x 20</option><option value='14'>20 x 27</option><option value='35'>11 x 15 eco</option> </select> </div> </td> <td width="18%"><input type="text" name="qtephotos" id="qtephotos" size="8" style="text-align:center" value="1" /></td> <td width="25%"><ul> <li> <input name="fdpphoto" id="fdpphoto" type="checkbox" checked="checked" /> Frais de port</li> <li> <input name="fdtphoto" id="fdtphoto" type="checkbox" checked="checked" /> Frais de traitement </li> <li> <input name="gratuitphoto" id="gratuitphoto" type="checkbox" checked="checked" /> Photos gratuites </li> </ul></td> <td width="10%" align="center" valign="middle"><label> <a href="javascript:comparez();">Comparez</a> </label></td> </tr> </table>
Partager