#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,323
January 2004
todge
|
Post by Todge on Jun 7, 2009 2:04:33 GMT -8
Exactly what it says, it will put your sub-boards in alphabetical order..
Put it in your GLOBAL FOOTER.
<script type="text/javascript"> <!-- // Alphabetize sub-boards...
if(location.href.match(/board=/) && !location.href.match(/display=/)) { var subTitles = new Array(); var subs = new Array(); var sT = 0; var sub = document.getElementsByTagName('tr'); for(s=0; s<sub.length; s++) { if(sub[s].firstChild.width == '8%' && sub[s].firstChild.nextSibling.width == '66%') { subs[sT] = sub[s]; subTitles[sT] = sub[s].firstChild.nextSibling.getElementsByTagName('b')[0].innerHTML+'|'+sT; sT++; }} subTitles = subTitles.sort(); for(s=0; s<subs.length; s++) { var subCell = subs[0].parentNode; subCell.appendChild(subs[parseInt(subTitles[s].split('|')[1])]); }} // --> </script>
|
|