You can use this javascript.
Replace 'http://yoursite/playing.php' with the right url to the page that contains the song title/artist script
Then place the script in the <head></head> section of that page
Notes:
- the random 'buster' variable is there to fool the browser letting it think it's a new page and don't load the page from it's cache
- the number 180000 stands for 3 minutes (60000 = 1 minute)
So this script will refresh the page every 3 minutes with the new data:
- Code: Select all
<SCRIPT LANGUAGE="JavaScript">
<!---
var refreshID = "";
refreshID = setTimeout("DoRefresh()", 180000);
function DoRefresh()
{
var buster = Math.random();
document.location.href = 'http://yoursite/playing.php?buster='+buster;
}
//--->
</SCRIPT>
See our website
http://ramradio.com how we use it.
Enjoy!
Paul
RAM FM Eighties Hit Radio