|
Post by CD on May 30, 2005 9:59:48 GMT -8
Place: Main Footers Compatiblity: IE 6.0, FF Editing: First two variables. They tell you what they do. Description: This code gives you the option to remove either the "Birthdays," "Events," or both sections from your Info Center. Preview: None
<script> // Remove Birthday or Event info from Info Center // Code may not be redistrbuted without permission // Copyright CDDude229 of Sin Fallen Studios (http://sfstudio.proboards1.com)
// Put "yes" if you want to display birthdays if there are any. var birth = "no";
// Put "yes" if you want to display events if there are any. var event = "no";
// No need to edit below here var aTD = document.getElementsByTagName("TD");
// Birthday loop for(a=0;a<aTD.length;a++){ if(birth=="yes"){ } else { if(aTD[a].innerHTML.match(/Today/i) && aTD[a].innerHTML.match(/Birthdays/i) && aTD[a].className=="catbg"){ aTD[a].parentNode.style.display="none"; aTD[a+1].parentNode.style.display="none"; }}}
// Event loop for(b=0;b<aTD.length;b++){ if(event=="yes"){ } else { if(aTD[b].innerHTML.match(/Events/i) && aTD[b].className=="catbg"){ aTD[b].parentNode.style.display="none"; aTD[b+1].parentNode.style.display="none"; }}} </script>
|
|