vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Change Sticky Splitter Class

Change Sticky Splitter Class - Posted By Michael (wrighty) on 31st Mar 08 at 8:08pm
This code should only really be used if you have split your stickies from normal posts in the admin panel.

[To do this: Image => Forum Settings]

Use the CSS at the top to style the new bar! {Smile}



<style>
.ann_sep {
    background-color: #FF0000;
}
</style>

<script>
/*Change Sticky Splitter Class
Created By Wrighty
No: Rip, Repost or Claim */

var d= get('td','tag');
var x = '&nb'+'sp;';
for(i=0;i<d.length;i++){
    if(d[i].innerHTML == x && d[i].className == 'window1' && d[i].colSpan == '5'){
        d[i].className = 'ann_sep';
        break;
    }
}
</script>


Global Footer