solid
inherit
-282701
0
May 19, 2024 2:50:59 GMT -8
solid
0
January 1970
GUEST
|
Post by solid on Dec 10, 2005 11:40:12 GMT -8
Forum URL: malu.proboards56.com
1.Craig you gave me a code that would allow me to have different graidents for different skins. I can't get the info box to have a graident on either skin.
|
|
inherit
Within Moriarty's Web
7801
0
Sept 26, 2020 6:36:42 GMT -8
Storm
25,378
February 2003
storm914
|
Post by Storm on Dec 10, 2005 11:45:53 GMT -8
Forum URL: malu.proboards56.com1.Craig you gave me a code that would allow me to have different graidents for different skins. I can't get the info box to have a graident on either skin. Here is for the first question though from the code data base.... Pretty simple to use, i'll post the code first then explain what needs to be changed... <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.
|
|
solid
inherit
-282703
0
May 19, 2024 2:50:59 GMT -8
solid
0
January 1970
GUEST
|
Post by solid on Dec 10, 2005 12:18:00 GMT -8
That dosen't help. Any way I resolved it. Thanks.
|
|
inherit
Within Moriarty's Web
7801
0
Sept 26, 2020 6:36:42 GMT -8
Storm
25,378
February 2003
storm914
|
Post by Storm on Dec 10, 2005 12:19:26 GMT -8
It was what you asked for different gradients for different skins, look at the code title..
|
|
#eb7100
1480
0
1
May 18, 2024 11:56:24 GMT -8
Craig
208,894
September 2001
cmdynasty
|
Post by Craig on Dec 10, 2005 15:38:56 GMT -8
That dosen't help. Any way I resolved it. Thanks. What was the problem with it in the end?
|
|