ok ta
I'll wait till someone's on-air to see the change, is there any video's similar to this so i can get my head round thisTry this
JavaScript:(function(d) { function onair() { const dj = d.querySelector('#dj'), nd = new Date(), dy = nd.getDay(), hr = nd.getHours(), mn = nd.getMinutes(); let txt = null; switch (dy) { case 1: // Monday if (hr === 8) // 8:00 - 8:59 - 60 minutes - 1 hour dj.src = 'djimages/kayley.jpg'; if (hr === 13) { // 13:00 - 13:59 - 60 minutes - 1 hour dj.src = 'djimages/djbunny.jpg'; txt = 'Monday at 1 PM<br>Auto<br>With Bunny'; } if (hr === 21) // 21:00 - 21:59 - 60 minutes - 1 hour dj.src = 'djimages/billy.jpg'; break; case 2: // Tuesday if (hr === 8 && (mn >= 0 && mn <= 15)) // 8:00 - 8:15 - 15 minutes dj.src = 'djimages/kayley.jpg'; if (hr === 13) { // 13:00 - 13:59 - 60 minutes - 1 hour dj.src = 'djimages/djbunny.jpg'; txt = 'Tuesday at 1 PM<br>Auto<br>With Bunny'; } if (hr === 17) // 17:00 - 17:59 - 60 minutes - 1 hour dj.src = 'djimages/djbunny.jpg'; break; case 3: // Wednesday if (hr === 8 && (mn >= 0 && mn <= 15)) // 8:00 - 8:15 - 15 minutes dj.src = 'djimages/off-air.jpg'; if (hr === 15) // 15:00 - 15:59 - 60 minutes - 1 hour dj.src = 'djimages/djbunny.jpg'; break; case 4: // Thursday if (hr === 21) // 21:00 - 21:59 - 60 minutes - 1 hour dj.src = 'djimages/strawbs.jpg'; if (hr === 16) { // 16:00 - 16:59 - 60 minutes - 1 hour dj.src = 'djimages/djbunny.jpg'; txt = 'Monday at 1 PM<br>Auto<br>With Bunny'; } break; case 5: // Friday if (hr === 13 || hr === 14) { // 13:00 - 14:59 - 2 hours dj.src = 'djimages/djbunny.jpg'; txt = 'Saturday at 8 AM<br>Christian Music<br>with Dj Bunny'; } break; case 6: // Saturday if (hr === 2 || hr === 3) { // 2:00 - 3:59 - 2 hours dj.src = 'djimages/djbunny.jpg'; txt = 'Saturday at 8 AM<br>Christian Music<br>with Dj Bunny'; } break; case 0: // Sunday if (hr === 21) // 21:00 - 21:59 - 60 minutes - 1 hour dj.src = 'djimages/strawbs.jpg'; break; default: dj.src = 'djimages/strawbs.jpg'; break; } if (txt) { if (document.querySelector('#who-on-air-txt')) document.querySelector('#who-on-air-txt').innerHTML = txt; else { tx = document.createElement('div'); tx.style.color = 'white'; tx.id = 'who-on-air-txt'; tx.innerHTML = txt; dj.insertAdjacentElement('afterend', tx); } } } setInterval(function() { onair(); }, 1000); })(document);
don't forget after re-loaded file showdj.js use on your computer CTRL+F5