|
<script type="text/Javascript"> // Remove Calendar from Info Center if No Events/Birthdays by Chris // Do not redistribute without permission
var aTD = document.getElementsByTagName("TD"); if(location.href.match(/action=home/i) || !location.href.match(/action=/i)){ for(a=aTD.length-1;a>0;a--){ if(aTD[a].innerHTML.match(/Events/i) && aTD[a].innerHTML.match(/Birthdays/i) && aTD[a].width == "95%"){ if(!aTD[a].getElementsByTagName("A")[0]){ aTD[a].parentNode.style.display = "none"; aTD[a-2].parentNode.style.display = "none"; } break; } } } </script> Place the module in your main footers/home page section. Make sure to place it BELOW the info center module.
Last Edit: Aug 25, 2006 16:39:59 GMT by Chris
|
|
|
|