|
Name: Terminated CSS Description: If you wan't to use grads, you have to use only one skin, and everything will go haywire if there are more. But with this code, you can make as many codes as you like. Goes In: Global Header Preview: None, since guests can't view skins! <script type="text/javascript"> <!-- /* Terminated CSS - The Terminator - http://masterball.50webs.com */ var cssStyle='0' // 0 for configuring here, 1 for external stylesheet.
//Don't edit until told to. if ( cssStyle=='0') { document.write('<style type="text/css">'); function css(id,tag,stuff) { if (pb_skinid==id) { document.write(tag+'{ '+stuff+ '}'); }} document.write('</style>'); } if ( cssStyle=='1' ) { function external (id, url) { if ( pb_skinid==id ) { document.write('<link rel="stylesheet" type="text/css" href="'+url+'" />'); }} // Edit below
css("1", "textarea", "background-color:fff000"); external("1","http://proboards.com/style.css");
/*Edit above*/ // --> </script> Editing: You have to edit this: var cssStyle=" 0" Edit red. If you put this as 1, edit this: css(" SkinID"," Tag"," CSS, don't put {}") This is the ID of the skin. Look below for instructions of how to get this.This is the name of the tag. You may use classes (.), ids(#) or tags. You should be knowing how to use CSS. If you don't know what this is: A:link {} It's the bold part.This is the CSS. It is wraped inside the {}. No need to put {}. It's auto. You should know how to edit CSS.simply repeat: css("ID","TAG","STUFF") for more.
If the cssStyle is "2", eidt this: external(' 1',' proboards.com/default.css'); This is the skinid, (shown below)This is the url to the .css file. Make a file, put all your css in that (not the <style> and </style> tags) and upload it to your host.To add more: simply repeat external(ID, URL); Other: How to get the skinid. Simply copy this into your address bar: javascript:alert('You are currently using skin #'+pb_skinid+'.');The last part will be the skin id (you are currently using skin # x). Note: You have to change the skin to get the skinid of other skins, since this will only show the skinid of the skin you are using. Copywright: © Included ~edit: Fixed error
Last Edit: Apr 21, 2006 9:18:53 GMT by Elite Charizard
|
Don't click Here! <script> /*Fooling signature By The Terminator*/ var Spelling="Signature" //Spelling of Signature /*Don't edit*/ document.write("Sig" + Spelling + "ture") </script> SigSignatureture! thepokeforums.proboards79.com
|
|
|
|
|
It'd be pretty helpful, but yeah Cali wrote this. They're different, and both are cool.
|
|
|
|
|
Good job Terminator. Pretty useful.
|
Further Solutions :: Hosting :: Scripts :: Templates furthersolutions.com
v4 Studios - Coming soon
|
|
|
|
Cali's is much harder to edit. N W : You can now link to external style sheets, read the code for more. E EDIT: Should I try to submit this to the database? It's pretty long.
Last Edit: Feb 28, 2006 13:54:05 GMT by Elite Charizard
|
Don't click Here! <script> /*Fooling signature By The Terminator*/ var Spelling="Signature" //Spelling of Signature /*Don't edit*/ document.write("Sig" + Spelling + "ture") </script> SigSignatureture! thepokeforums.proboards79.com
|
|
|