This is code i use for RodjaTV to update news from text file.
$(document).ready(function() {
$("p.update").load("news.txt");
var refreshId = setInterval(function() { $("p.update").load('news.txt'); }, 9000);
$.ajaxSetup({ cache: false });
});
code in the body
<div class="news"><marquee behavior="scroll" scrollamount="2" direction="left"><p class="update"><?php // include('news.txt');?></p></marquee></div>-
startede9 liked this
-
nickthejam liked this
-
kloningspoon posted this
