Here is the code I made for my forum. When someone on my forum has a new message then it plays the AOL "You've Got Mail" lol.
Just change the URL variable to the url where the mp3 file is located.
GLOBAL HEADERCode:
- <script type="text/javascript">
- <!--
- /*play noise when new pm
- glitchessocom.vforums.co.uk*/
- var URL = 'INSERT URL HERE.MP3';
- if(vf_new_pms!= 0) {
- document.write('<embed src="' + URL + '" autostart="true" loop="false" volume="100" hidden="true" />');
- }
- //-->
- </script>
What if the person has new PM's and just want to ignore it ?
Personally i think it would be annoying, but im open to if anyone wants this code... Anyone? PM me if you'd use this code.
Glitches, I would suggest adding an "Ignore" link somewhere that sets a cookie to stop the sound from playing anymore for that PM.