Jump to content

on air script


ultra89
 Share

Recommended Posts

hello i have a script that allows the picture to change whenever

a different dj is on the air?

 

please can someone help

 

</pre><form id="nowPlaying">        Now Playing                                          onairinfo/images/logo.gif                                                </for

 

this is the script, i don't know if i have done anything wrong or not

Link to comment
Share on other sites

  • 2 weeks later...

this code dont do anything for me

 

 

 

 

 

 

 

 

/* NOT CURRENTLY USED

var thedate = new Date();

var dayofweek = thedate.getDay();

var hourofday = thedate.getHours();

 

 

var GMT = new Date().getTimezoneOffset();

var offsetGMT = -5 * new Date().getTimezoneOffset()/60;

*/

 

 

// Sun=0 1 2 3 4 5 Sat=6

var DayOfWeek = new Array('Weekend','Monday','Tuesday','Wednesday','Thursday','Friday','Weekend');

 

 

var NoShow = 'No Show Scheduled

for urbanradio';

var DH = new Array (7);

for (d=0; d

DH[d] = new Array (24);

for (h=0; h

}

 

 

DH[1][09] = '/new/images/jukebox.gif';

DH[1][10] = '/new/images/jukebox.gif';

DH[1][11] = '/new/images/jukebox.gif';

DH[1][12] = '/new/images/jukebox.gif';

DH[1][13] = '/new/images/jukebox.gif';

DH[1][14] = '/new/images/jukebox.gif';

DH[1][15] = '/new/images/jukebox.gif';

DH[1][16] = '/new/images/jukebox.gif';

DH[1][17] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[1][18] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[1][19] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[1][20] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[1][21] = 'ON AIR NOW Jukebox 1am to 12pm';

 

 

DH[2][09] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][10] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][11] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][12] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][13] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][14] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][15] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][16] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][17] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][18] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][19] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][20] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[2][21] = 'ON AIR NOW Jukebox 1am to 12pm';

 

 

DH[3][09] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][10] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][11] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][12] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][13] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][14] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][15] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][16] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][17] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][18] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][19] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][20] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[3][21] = 'ON AIR NOW Jukebox 1am to 12pm';

 

 

DH[4][09] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][10] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][11] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][12] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][13] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][14] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][15] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][16] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][17] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][18] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][19] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][20] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[4][21] = 'ON AIR NOW Jukebox 1am to 12pm';

 

 

DH[5][09] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][10] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][11] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][12] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][13] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][14] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][15] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][16] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][17] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][18] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][19] = 'ON AIR NOW Jukebox 1am to 12pm';

DH[5][20] = 'ON AIR NOW DJ Strawbs All Request Show 8pm to 6pm';

DH[5][21] = 'ON AIR NOW Jukebox 1am to 12pm';

 

 

 

 

// Add more when schedule is known. Note: there may be better ways to do this when information is known.

 

 

 

 

function OnNow() {

var thedate = new Date();

var dayofweek = thedate.getDay();

var hourofday = thedate.getHours();

// alert(dayofweek+':'+hourofday+'

'+DH[dayofweek][hourofday]);

var showOn = DH[dayofweek][hourofday];

if (showOn == '') { showOn = thedate+'\n\nNo Show Scheduled'; }

alert(showOn);

}

 

 

function NowON() {

var thedate = new Date();

var dayofweek = thedate.getDay();

var hourofday = thedate.getHours();

var showOn = DH[dayofweek][hourofday];

if (showOn == '') { showOn = thedate+'

No Show Scheduled'; }

document.getElementById('NowOn').innerHTML = showOn;

}

document.write(NowON());

/new/images/jukebox.gif'

 

 

 

 

/* NOT CURRENTLY USED

var thedate = new Date();

var dayofweek = thedate.getDay();

var hourofday = thedate.getHours();

 

 

var GMT = new Date().getTimezoneOffset();

var offsetGMT = -5 * new Date().getTimezoneOffset()/60;

*/

 

 

// Sun=0 1 2 3 4 5 Sat=6

var DayOfWeek = new Array('Weekend','Monday','Tuesday','Wednesday','Thursday','Friday','Weekend');

 

 

var NoShow = 'No Show Scheduled

for KSWH';

var DH = new Array (7);

for (d=0; d

DH[d] = new Array (24);

for (h=0; h

}

 

 

DH[1][09] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[1][10] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[1][11] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[1][12] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[1][13] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[1][14] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[1][15] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[1][16] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[1][17] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[1][18] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[1][19] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[1][20] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

DH[1][21] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

 

 

DH[2][09] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[2][10] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[2][11] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[2][12] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[2][13] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[2][14] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[2][15] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[2][16] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[2][17] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[2][18] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[2][19] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[2][20] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

DH[2][21] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

 

 

DH[3][09] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[3][10] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[3][11] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[3][12] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[3][13] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[3][14] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[3][15] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[3][16] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[3][17] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[3][18] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[3][19] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[3][20] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

DH[3][21] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

 

 

DH[4][09] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[4][10] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[4][11] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[4][12] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[4][13] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[4][14] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[4][15] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[4][16] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[4][17] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[4][18] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[4][19] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[4][20] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

DH[4][21] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

 

 

DH[5][09] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[5][10] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[5][11] = 'ON AIR NOW Dean sharp breakfast show 9am to 12pm';

DH[5][12] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[5][13] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[5][14] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[5][15] = 'ON AIR NOW cheryle dale 12pm to 4pm';

DH[5][16] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[5][17] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[5][18] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[5][19] = 'ON AIR NOW Jessie brooke evening show 4pm to 8pm';

DH[5][20] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

DH[5][21] = 'ON AIR NOW Zenith classic rock 8pm to 10pm';

 

 

 

 

// Add more when schedule is known. Note: there may be better ways to do this when information is known.

 

 

 

 

function OnNow() {

var thedate = new Date();

var dayofweek = thedate.getDay();

var hourofday = thedate.getHours();

// alert(dayofweek+':'+hourofday+'

'+DH[dayofweek][hourofday]);

var showOn = DH[dayofweek][hourofday];

if (showOn == '') { showOn = thedate+'\n\nNo Show Scheduled'; }

alert(showOn);

}

 

 

function NowON() {

var thedate = new Date();

var dayofweek = thedate.getDay();

var hourofday = thedate.getHours();

var showOn = DH[dayofweek][hourofday];

if (showOn == '') { showOn = thedate+'

No Show Scheduled'; }

document.getElementById('NowOn').innerHTML = showOn;

}

document.write(NowON());

Urban8 ON AIR NOW

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...