|
Post by Ron White on Mar 31, 2006 0:34:35 GMT -5
Goes in the Main Footer
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.
<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>
-+-Win32##Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (VAUSSU03)##1280 × 768##1-+-
|
|