Blame view

Zozo/sc3/options.html 2.27 KB
aa84636b   aunterei   first commit
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  <!DOCTYPE html>
  <html>
     <header>
      <!-- pour associer � la feuille de style -->
      <link rel="stylesheet" type="text/css" href="style.css">
      <title>PROJET SC</title>
     </header>
  
     <head>
       <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
     <!--  <script type="text/javascript">
                  $(function() {
                  window.WebSocket = window.WebSocket || window.MozWebSocket;
                  var websocket = new WebSocket('ws://127.0.0.1:9000',
                                                'dumb-increment-protocol');
                                  websocket.onmessage = function (message) {
                      console.log(message.data);
                      $('div').append($('<p>', { text: message.data }));
                  };
                  
                  $('input').click(function(e) {
                      e.preventDefault();
                      websocket.send(valeur);
                      $('input').val('');
                  });
              });
       </script> -->
       </head>
  
  <body>
      <!-- choix des onglets -->
      <div id="menu">
          <ul id="onglets">
              <li><a href="index.html"> PROJET </a></li>
              <li class="active"><a href="options.html"> OPTIONS </a></li>
          </ul>
      </div>
  
      <!-- contenu de la page -->
       </br>
       </br>
       </br>
       
       <div class="titre">CHOIX DES OPTIONS</div>
       <div class="contenu">
       
        
       <FORM name="form">
          Lieu :
              <select name="lieu" >
                  <option SELECTED>-- Selectionnez un lieu --</option>
              </select>
  
  
  	    
  	    <SCRIPT LANGUAGE="JavaScript">
  
  	      var bruxelles=new Array("Bruxelles",50.850,4.350,0,0);
  	      var pekin=new Array("Pekin",39.917,116.433,0,6);
  	      var split=new Array("Split",43.517,16.467,0,0);
  	      var lille=new Array("Lille", 50.633, 3.066, 0, 0);
  
  	      var lieux=new Array(bruxelles,pekin,split,lille);
  
  	      var d=document.form.lieu;
  	      for(var i=0; i < lieux.length ; i++)
  			       {
  			       d.length++;
  			       d.options[d.length-1].text = lieux[i][0];
  			       }
  			       
  			       	
  		     
  			       </SCRIPT>
  	    
  <input type="submit" id="test" value="OK"/>
     
      </br>
      </br>
      
  
      </form>
      </div>
  
      
  </body>
  
  <footer>
  </footer>
  
  <html/>