Can I have some sort of sound play whenever you have a notification/message?
Thanks
Thanks
Last edited by texan on May 4th 2018, 4:51 pm; edited 2 times in total
$(window).load(function () {
my_setcookie('notifications', document.getElementById('fa_right').innerHTML, false);
setInterval(function () {
if (document.getElementById('fa_right').innerHTML != my_getcookie('notifications')) {
$('body').append('<embed src="http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3" width="0"
height="0" autoplay="true" style="display: none;" class="notification_sound"></embed>');
setTimeout(function () {
$('.notification_sound').remove();
}, 3000);
my_setcookie('notifications', document.getElementById('fa_right').innerHTML, false);
}
}, 5000);
});