KLoning Spoon

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>
  1. kloningspoon posted this
Blog comments powered by Disqus