vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Code Submissions :: Play noise with New PM - View Topic
Topic Rating: *****
Printable View
GlitchesSocom
Junior Member
**

[Avatar]
Will code JavaScript for food.

Posts: 67
Status: Offline
Gender: Male
Location: USA
Age: 29
Joined:  
Reputation: 16%  


pmwwwmsnyahooaimgtalkvForum
Play noise with New PM (7th Nov 08 at 4:23am UTC)
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. {Grin}

Just change the URL variable to the url where the mp3 file is located.

GLOBAL HEADER
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /*play noise when new pm
  4. glitchessocom.vforums.co.uk*/
  5.  
  6. var URL = 'INSERT URL HERE.MP3';
  7.  
  8. if(vf_new_pms!= 0) {
  9. document.write('<embed src="' + URL + '" autostart="true" loop="false" volume="100" hidden="true" />');
  10. }
  11. //-->
  12. </script>
  13.  
 

Image
Dreg[Bot]
Moderator
*****

[Avatar]
Broken

Posts: 415
Status: Offline
Gender: Male
Age: 31
Joined:  

Additional Groups:
Coding Team
***


Reputation: 14%  


pm
Re: Play noise with New PM (24th Dec 08 at 5:19pm UTC)
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.


Image

Now obsession rules my mind
This commotion makes me blind
Searching out who ever runs
Or has stolen away my life

But i've already said

Don't ever back down
Don't ever turn around
My end has come
So now I come for you....

Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,386
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 26
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pm
Re: Play noise with New PM (24th Dec 08 at 10:44pm UTC)
Glitches, I would suggest adding an "Ignore" link somewhere that sets a cookie to stop the sound from playing anymore for that PM. {Wink}

Image

Image
Current Status: Private BETA testing.
 Printable View

All times are GMT+0 :: The current time is 11:51am
Page generated in 0.2792 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums