Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Apr 20, 2006 18:02:52 GMT -5
If a member or members have a birthday today, this code will add a Happy Birthday message to them to your News Fader. It will appear as the last item in your News Fader.
Created By: Wonder
Main Footer
<script> //Add Happy Birthday Message to News Fader v1.0
//Copyright 10-31-2005 by ~Wonder //May be reposted anywhere as long as this header remains in tact. if("undefined"!=typeof(fContent)) { for(i=document.images.length-1;i>0;i--) { if(document.images[i].alt && document.images[i].alt=="birthdays"){break;} } if(i!=0) { a=document.images[i].parentNode.parentNode.getElementsByTagName("a"); bdays=new Array(); for(i=0;i<a.length;i++) { a[i].href.match(/action\=viewprofile/)?bdays[bdays.length]=a[i].innerHTML:""; } if(bdays.length>1){bdays[bdays.length-1]="and "+bdays[bdays.length-1];} if(bdays.length>2){bdays=bdays.join(", ");} else {bdays=bdays.join(" ");} bdays.length>0?fContent[fContent.length]="Happy Birthday to "+bdays:""; } } </script>
|
|