|
Post by kimmyjean on Jun 23, 2005 20:00:46 GMT -8
Can you make a code that can add the category, title, menu bars and border graphic to add to the multiple skins feature with proboards V4?
Love and Peace Kimmy
|
|
|
Post by CD on Jun 23, 2005 20:21:02 GMT -8
There's a code for this at SSD. >_> I havn't bothered to learn "switch case" yet, so wait for another coder to make it.
|
|
|
Post by Marty on Jun 23, 2005 22:20:56 GMT -8
switch case is just an easier way to do a lot of if statements. <script type="text/javascript"> <!-- switch(pb_skinid){ case 1: var titlebg="SKIN 1 TITLE GRAD URL"; var catbg="SKIN 1 CATEGORY GRAD URL"; var menubg="SKIN 1 MENU GRAD URL"; break; case 2: var titlebg="SKIN 2 TITLE GRAD URL"; var catbg="SKIN 2 CATEGORY GRAD URL"; var menubg="SKIN 2 MENU GRAD URL"; break; case 3: var titlebg="SKIN 3 TITLE GRAD URL"; var catbg="SKIN 3 CATEGORY GRAD URL"; var menubg="SKIN 3 MENU GRAD URL"; break; }
document.write('<style type="text/css"> .titlebg{background-image: url('+titlebg+');} .catbg{background-image: url('+catbg+');} .menubg{background-image: url('+menubg+');} </style>'); //--> </script> Edit the capitalized stuff. If you need to add more skins, simply add more: case 4: var titlebg="SKIN 4 TITLE GRAD URL"; var catbg="SKIN 4 CATEGORY GRAD URL"; var menubg="SKIN 4 MENU GRAD URL"; break; Put this in your global headers.
Last Edit: Jun 23, 2005 22:21:54 GMT -8 by Marty
|
|
|
Post by CD on Jun 23, 2005 22:38:15 GMT -8
Like I said. I never learned how, not that I didn't know what it did.
|
|
|
Post by kimmyjean on Jun 24, 2005 3:52:37 GMT -8
Almost the same as ssd........but both dont work.......... Here is the site kimmyjean1.proboards30.com/index.cgiPlaced in global headers..............and th other skins bars show through not the ones I placed in the capitilized part I think its conflicting with the main skin code to images........ Unless 1 is deemed the "default"? And I did label the secondary skin 1. So I removed the main code to take away any conflictions and added "default" to the first part of the code and it switched to the green.....but no green in the skin 1 just blank white area..and green came through on the default. Love and Peace Kimmy
Last Edit: Jun 24, 2005 4:10:32 GMT -8 by kimmyjean
|
|
|
Post by kimmyjean on Jun 24, 2005 7:11:32 GMT -8
Did some finagling...........default is 1 in the code and 1 ends up being 2...thanks guys.I appreciate all the time and help.....your the greatest
Love and Peace Kimmy
|
|