Jump to content

scroller content from a txt file that updates about every 2 - 3 minutes


dk4210

Recommended Posts

Hello Guys,

 

I have a question here..

 

I have a scroller on my pages that basically reads a text file and displays.. The problem that I am having is it doesn't update until I reload the page(even though the .txt file updates about every 3 minutes).. I would like it to update when the file has been changed..

 

Here is my page.

 

<link rel="stylesheet" href="../../css/li-scroller.css"  type="text/css">
<script src="../../js/jquery.li-scroller.1.0.js" type="text/javascript"></script>
<script type="text/javascript" src="../../jquery-1.6.1.min.js"></script>
   <script type="text/javascript">
       $(function(){
    $("ul#ticker01").liScroll();
    }); 
</script>

<?php 
$file = file_get_contents ('playingnow.txt'); 

?> 
<div class="scrollpos">
<ul id="ticker01">
    <li><a href="#"><?php Echo $file;?></a></li>
    
    <!-- eccetera -->
    </ul> 

</div>	

 

What can I add  to make it go out and reload just the div not the entire page?

 

Please advise..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.