Jump to content

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


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..

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.