inherit
54907
0
Apr 2, 2008 18:05:12 GMT -8
Cheza-chan
:3 IMA KITTY!
186
August 2005
lonelycheza
|
Post by Cheza-chan on Sept 2, 2005 13:34:56 GMT -8
How do I add gradients to my forum??? Please help!
|
|
Guide
New Member
Posts: 0
inherit
181056
0
Jul 6, 2012 10:43:44 GMT -8
Guide
0
July 2012
11823
|
Post by Guide on Sept 2, 2005 13:43:21 GMT -8
|
|
inherit
54907
0
Apr 2, 2008 18:05:12 GMT -8
Cheza-chan
:3 IMA KITTY!
186
August 2005
lonelycheza
|
Post by Cheza-chan on Sept 2, 2005 13:44:17 GMT -8
Thanks. Dang I thought there might be a way to have seperate gradients on each skin >.< I have about 7 skins... RATS. Thanks though ^-^
|
|
Elonwe
Full Member
"Whenever you are fed up with life, start writing." -C.S. Lewis
Posts: 665
inherit
43863
0
May 12, 2008 12:27:18 GMT -8
Elonwe
"Whenever you are fed up with life, start writing." -C.S. Lewis
665
May 2005
elonwe
|
Post by Elonwe on Sept 2, 2005 15:59:31 GMT -8
I think you can. I found this somewhere here in support not too long ago and copied it for myself. Can't remember where, but maybe it will help you.
<script type="text/javascript"> <!--
// Different gradients for different skins // Global header
var cssSkin = [];
// Skin 1 cssSkin["1"] = [ ["titlebg", "URL HERE"], ["catbg", "URL HERE"], ["menubg", "URL HERE"], ["newstitlebg", "URL HERE"] ]
// Skin 2 cssSkin["2"] = [ ["titlebg", "URL HERE"], ["catbg", "URL HERE"], ["menubg", "URL HERE"], ["newstitlebg", "URL HERE"] ];
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 ++){ var tRule = "." + cssSkin[pb_skinid][0]; var tVal = cssSkin[pb_skinid][1];
if(isIE){ iSheet.addRule(tRule, "background-image: url(" + tVal + ")"); } else { iSheet.insertRule(tRule + "{" + "background-image: url(" + tVal + ")}", 0); } } } }
//--> </script>
That goes into your global header.
See where it says "URL HERE", that is where you add the urls to the gradients, so far it allows you to customise the gradients for 2 skins, if you need to add more just another another one of these below the other 2....
// Skin 2 cssSkin["3"] = [ ["titlebg", "URL HERE"], ["catbg", "URL HERE"], ["menubg", "URL HERE"], ["newstitlebg", "URL HERE"] ];
Only thing you need to change is the number that is in bold, that is the skin id number.
|
|