|
Post by Wrighty on Apr 11, 2007 18:26:22 GMT -5
Ok so the one problem with people using multiple skins is coding!! And well I have come up with a solution! This code does things in <script> and <style> tags!
Edit HERE with the location of the codes (the folder) change lctn with the location of where it is ... 1 for Main Headers 2 for Main Footers 3 for Global Headers 4 for Global Footers
Saving: Make sure you save each one with the pb_skinid and the location Main Headers: mh Main Footers: mf Global Headers: gh Global Footers: gf
eg: For default skin: File name for Main Footer would be: mf1.js or mf1.css
<script type="text/javascript"> //Created By Wrighty var base= "HERE"; //Where Codes are stored (With trailing /) var lctn= "1"; //1 for Main Header, 2 for Main Footer, 3 for Global Header, 4 for Global Footer if(lctn=="1"){ script="mh"; }else if(lctn=="2"){ script="mf"; }else if(lctn=="3"){ script="gh"; }else if(lctn=="4"){ script="gf"; }
var echscript = base+script+pb_skinid+".js"; var css = base+script+pb_skinid+".css";
var echcss = "<link href="+css+" rel=stylesheet type=text/css >"; document.write(echcss); document.write("<script type=text/javascript src="+echscript+"></sc"+"ript>"); </script>
I am sure that aint explained enough, but MEH let me know if you need help
|
|
|
Post by Reverse Blade on Apr 11, 2007 18:35:21 GMT -5
accepted
|
|
|
Post by Wrighty on Apr 11, 2007 18:39:33 GMT -5
Wooot Thanks!
|
|
|
Post by wickednessie on Apr 12, 2007 15:21:34 GMT -5
I have to comment this: OMG THANKS!! I did just need this code, and then, it is riht before me! Nice work anyways ^^
|
|
|
Post by Wrighty on Apr 12, 2007 16:08:44 GMT -5
No problem, if you have any probs, let me know!
|
|