vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Seperate Boards By Gradient
Seperate Boards By Gradient - Posted By Michael (wrighty) on 17th Apr 08 at 7:30pm
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