Scroll text and read it from .txt file - Javascript jQuery

Javascript examples for jQuery:Text

Description

Scroll text and read it from .txt file

Demo Code

ResultView the demo in separate window

<!doctype html>
<html lang="en">
   <head> 
      <script src="jquery.min.js"></script>
      <!-- give corrected jquery path --> 
      <script>
  setInterval(function(){get_contents();}, 10000);
  function get_contents() {//from   w  ww.j a v  a  2s. com
    $.get('content.php?tail', function(data) {
        $('#contents').append(data);
      });
  }
  
      </script> 
   </head> 
   <body> 
      <div id="contents">
         Loading...
      </div>  
   </body>
</html>

Related Tutorials