vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Sub-boards in [ ] - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Sub-boards in [ ] (15th May 08 at 8:52pm UTC)
This code will place your sub-board names in square brackets... [ and ]

<script>
/*Sub-Boards in []
Created By Wrighty*/

var x = get('font','tag');

for(c=0; c<x.length; c++){
    if(x[c].innerHTML.match(/Sub-Boards/) && x[c].size == '1'){
        x[c].innerHTML = x[c].innerHTML.replace(/,/,' -');
        var f = x[c].getElementsByTagName('a');
        var l = document.createElement('font');
        l.appendChild(document.createTextNode('['));
        l.color = '#FFFFFF';
        var r = document.createElement('font');
        r.appendChild(document.createTextNode(']'));
        r.color = '#FFFFFF';
        for(y=0;y<f.length;y++){
            f[y].parentNode.insertBefore(l.cloneNode(true), f[y]);
            f[y].parentNode.insertBefore(r.cloneNode(true), f[y].nextSibling);
        }
    }
}
</script>


Global Footer
 Printable View

All times are GMT+0 :: The current time is 9:13pm
Page generated in 0.1365 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums