vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Seperate Boards By Gradient - 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
Seperate Boards By Gradient (17th Apr 08 at 7:30pm UTC)
This code will Add a gradient between your boards. Just change the part in red to the link to your gradient.

<script>
/*Seperate Boards By Gradient
Coded By Wrighty
Do Not: Rip, Repost or Claim*/

var g = {
    grad: 'GRADIENT HERE',
    r: get('tr','tag'),
    init: function(){
        for(i=0; i<this.r.length; i++){
            if(this.r[i].id.match(/board_(\w)/) && this.r[i].innerHTML.match(/new posts/i) && this.r[i+1].id.match(/board_(\w)/)){
                var d = document.createElement('tr');
                var c = document.createElement('td');
                c.colSpan='3';
                c.style.cssText = 'height: 10px; background-image: url('+this.grad+');';
                d.appendChild(c);
                this.r[i].parentNode.insertBefore(d, this.r[i].nextSibling);
                i = i+1;
            }
        }
    }
};
g.init();
</script>


Global footer
 Printable View

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