Javascript examples for jQuery:Text
Scroll text and read it from .txt file
<!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>