|
<script type="text/Javascript"> // Alphabetize Users Online v1 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].width == "95%" && aTD[a].className == "window2" && aTD[a].innerHTML.match(/The most users ever online/i)){ var links = aTD[a].getElementsByTagName("A"); var links2 = []; for(b=0;b<links.length;b++){ links2.push([links[b].innerHTML,links[b].cloneNode(true)]); } aTD[a].innerHTML = aTD[a].innerHTML.split(/guest/i)[0]+"guests<br />"; links2.sort(); for(b=0;b<links2.length;b++){ if(b != 0) aTD[a].appendChild(document.createTextNode(", ")); aTD[a].appendChild(links2[b][1]); } break; } } } </script> Place the module in your footers after the info center. Updates 12/10/2006 to increase speed.
Last Edit: Dec 10, 2006 20:07:53 GMT by Chris
|
|
|
|