Song title Javascript/HTML scripts

General discussion, can include anything non-streaming related except advertisements or spam
Forum rules
Please don't use the forums to report outages.

Song title Javascript/HTML scripts

Postby booyaka » Sat 13th Nov, 2010 4:30 am

the Song title Javascript/HTML scripts only show 1 title and it dose not update the title.
it only show the first Song title not like the one in http://s9.myradiostream.com/19692.htm
that update song title
cant you fix it so that it also show the dj name
booyaka
 
Posts: 1
Joined: Wed 10th Nov, 2010 12:08 am

Re: Song title Javascript/HTML scripts

Postby Gavin » Sat 20th Nov, 2010 6:15 pm

Hi,

The song title displays the current song and doesn't update automatically. You would need to use Ajax or some other way of refreshing it on your website.
Please don't PM me for support, support system located at:
Customer Support: https://secure.bellonline.co.uk/submitticket.php
FreeStreamHosting Support: http://freestreamhosting.org/support.php
Sales: https://secure.bellonline.co.uk/contact.php
Gavin
Site Admin
 
Posts: 387
Joined: Thu 01st Jan, 1970 1:00 am

Re: Song title Javascript/HTML scripts

Postby izawebmaster » Mon 22nd Nov, 2010 12:22 pm

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
izawebmaster
 
Posts: 6
Joined: Wed 28th Jul, 2010 9:00 pm

Re: Song title Javascript/HTML scripts

Postby jungaless jamz FM » Wed 23rd Feb, 2011 5:05 pm

Hi can some one tell me how to add a player to facebook so it will be easier for my fans to listen to me instead of clicking the link and carrying theme to a hole new page
jungaless jamz FM
 
Posts: 1
Joined: Wed 23rd Feb, 2011 4:56 pm

Re: Song title Javascript/HTML scripts

Postby Gavin » Mon 28th Feb, 2011 3:00 pm

Hi,

It's unlikely that Facebook will allow the iframe for the ad box - although there's nothing questionable about our iframe content it's a potential security risk for them (users could put anything into an iframe).

And an update regarding song updating - the song automatically updates on the new pages.
Please don't PM me for support, support system located at:
Customer Support: https://secure.bellonline.co.uk/submitticket.php
FreeStreamHosting Support: http://freestreamhosting.org/support.php
Sales: https://secure.bellonline.co.uk/contact.php
Gavin
Site Admin
 
Posts: 387
Joined: Thu 01st Jan, 1970 1:00 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron