Is there any codes that makes my forum play an mp3 file when users have new notifications?
thank you
thank you
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
$(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);
});
Problem solved & topic archived.
|