mason
New Member
Posts: 3
|
Post by mason on Jan 28, 2008 8:50:42 GMT -5
hi i was wondering how you can change the Category Backgrounds to images instead of colour codes? I know it can be done i just dont know how, example of changes on the below forum.tviruslab.proboards43.com/
|
|
|
Post by JZSquared on Jan 28, 2008 20:39:07 GMT -5
hi i was wondering how you can change the Category Backgrounds to images instead of colour codes? I know it can be done i just dont know how, example of changes on the below forum.tviruslab.proboards43.com/ I believe that this was the code you were looking for: <script type="text/javascript"> <!--
// Different gradients for different skins // Global header
var cssSkin = [];
// Skin 1 cssSkin["1"] = [ ["titlebg", "http://i11.photobucket.com/albums/a174/hollys_signatures/Buttons/graygradb.gif"], ["catbg", "http://i13.photobucket.com/albums/a266/jeff24fan/Lab%20skin/labgrad.gif"], ];
var iSheet = document.styleSheets.item(0); var isIE = (document.all)? true : false;
if(iSheet){ if(cssSkin[pb_skinid]){ for(s = 0; s < cssSkin[pb_skinid].length; s ++){ if(cssSkin[pb_skinid][s][1].match(/^http:/)) { var tRule = "." + cssSkin[pb_skinid][s][0]; var tVal = cssSkin[pb_skinid][s][1];
if(isIE){ iSheet.addRule(tRule, "background-image: url(" + tVal + ")"); } else { iSheet.insertRule(tRule + "{" + "background-image: url(" + tVal + ")}", 0); } } } } }
//--> </script> Global header. Code found at The Resident Evil Lab
|
|
mason
New Member
Posts: 3
|
Post by mason on Jan 29, 2008 7:28:07 GMT -5
Awsome Thanks
|
|
|
Post by JZSquared on Jan 30, 2008 16:20:10 GMT -5
Not a problem, let us know if we can help you with anything else.
|
|