Advertisement
metalx1000

App for Talking to the Deaf

Jun 12th, 2013
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3.     <style>
  4.     #output, #bt_send{
  5.         font-size:75px;
  6.     }
  7.     </style>
  8.     <script src="jquery-1.10.1.min.js"></script>
  9.     <script>
  10.         $(document).ready(function(){
  11.             setInterval(function(){
  12.                 $.get("read.php", function(msg){
  13.                     $("#output").html(msg);
  14.                 });
  15.             },3000);
  16.  
  17.             $('#bt_send').click(function(){
  18.                 msg=$('#msgbx').val();
  19.                 $('#msgbx').val('');
  20.                 $('#output').html(msg);
  21.                 $.get('send.php', { msg: msg});
  22.             });
  23.         });
  24.     </script>
  25. </head>
  26.  
  27. <body>
  28.     <div id='output'>
  29.     <?php include('read.php');?>
  30.     </div>
  31.     <textarea id='msgbx' rows='4' cols='50'></textarea><br>
  32.     <button id='bt_send'>Send</button>
  33. </body>
  34.  
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement