Kahless
Administrator
Guitar Star
Posts: 1,045
|
Post by Kahless on Nov 2, 2007 21:29:06 GMT -5
Description: adds the Sub Boards of a board to its appropriate board. All text and background of text container is CSS editable.
Source: Open
Cross-Browser: Yes
Main Footer:
<style type="text/css"> <!-- div.subbox {} span.sublist {} span.subboard {} --> </style>
<script type="text/javascript"> <!-- /* Sub Board Listings Code Coded By Andrew webAddict Open Source applies */ var cTables = document.getElementById('container').getElementsByTagName('table'); var forum = document.getElementById('forumjump').options, subs = "";
if(location.href.match(/\.com(\/|.+cgi(\?|#.+|\?\w+=home)?)?$/i)) { for(x = cTables[2].rows, i = 1, s = 3;i < x.length; i ++) { if(x.firstChild.className == 'windowbg') { if(forum.nextSibling && forum.nextSibling.innerHTML.match(/^(\s)?---\s/i)) subs = '<div class="subbox"><span class="sublist">Sub-Boards:</span> ';
while(forum.nextSibling && forum.nextSibling.innerHTML.match(/^(\s)?---\s/i)) { subs += '<span class="subboard">' + forum.nextSibling.innerHTML.split(/-\s/i)[1] + '</span>' + (forum.nextSibling.innerHTML.match(/^(\s)?---\s/i) ? ', ' : ''); s ++; } subs = subs.replace(/,\s$/,"") + '</div>'; x.childNodes[1].innerHTML += subs;
s ++; } else if(x.firstChild.className == 'catbg' && !x.firstChild.innerHTML.match(/markallboardsread/i)) { s += 3; } } } //--> </script>
If you know CSS, use the first half to make changes to how the text appears, if not ask me here in the requests board
|
|