options.html 2.27 KB
<!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/>