javascriptを利用しています。余熱さんのサンプルを参考にさせていただきました。

List.html

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>Line Tracing Car</title>
    <style type="text/css">
    <!--
        input[type="button"] {font-size:50; font-weight:bold; height:25%; width:33%; background-color:#999999;}
    -->
    </style>
    <script language="javascript" type="text/javascript">
    <!--
        var msg130 = "http://flashair/command.cgi?op=130&ADDR=0&LEN=";
        var msg131 = "http://flashair/command.cgi?op=131&ADDR=0&LEN=1&DATA=";
        var msg106 = "http://flashair/command.cgi?op=106";
        var msg190 = "http://flashair/command.cgi?op=190&CTRL=0x00";
        var request = new XMLHttpRequest();
        function command(url) {
            request.open("GET", url, false);
            request.send(null);
            document.getElementById('RESULT').value = "Result: " + request.responseText;
        }
        function memwrite(ch) {
            request.open("GET", msg131+ch, false);
            request.send(null);
            document.getElementById('RESULT').value = "Result: " + ch + " " + request.responseText;
        }
    //    -->
    </script>
</head>
<body>
<input type="button" value="左" onclick="memwrite('L')" style="background-color:#22FF00;">
<input type="button" value="前" onclick="memwrite('F')" style="background-color:#EEEE00;">
<input type="button" value="右" onclick="memwrite('R')" style="background-color:#0099EE;"><br><br>
<input type="button" value="MAC" onclick="command(msg106)">
<input type="button" value="停止" onclick="memwrite('S')" style="background-color:#FF2222;">
<input type="button" value=" "><br><br>
<input type="button" value="I/O" onclick="command(msg190)">
<input type="button" value="トレース" onclick="memwrite('T')" style="background-color:#00EEBB;">
<input type="button" value="メモリー" onclick="command(msg130 + '8')"><br><br>
<input type="text" id="RESULT" style="WIDTH: 90%; font-size:200%" value="Initialized">
</body>
</html>

ページトップへ