inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Aug 5, 2008 15:53:07 GMT -8
This code will play a sound 'ding' when you have received a PM. It would be probably best to put this code in the MAIN FOOTER, so that it isn't sounding all of the time. However, it can be put in the GLOBAL FOOTER. <script> /*Sound on New PM Created By Wrighty Do Not: Rip, Repost or Claim*/
var s = 'http://pb.wrighty.info/blip.wav';
if(document.getElementsByTagName('td')[2].innerHTML.match(/, (\d+)\ (are|is) new./i) && RegExp.$1 > 0 && !location.href.match(/pm/)){ document.write('<embed src = ' + s + ' hidden = "true">'); } </script>To alter the sound that is played, feel free to change the part in red. Also, you may use the default sound. def.100webspace.net/blip.wavduelists-elite.bravehost.com/blip.wavinsaneyugioh.webs.com/blip.wavThose 3 are also usable - although please make sure you rehost them!
|
|