hamster01 Posted September 9, 2007 Share Posted September 9, 2007 Frequently Asked Questions Everyone now and again, you will get a person asking how to do this or that. No problem, but why don't we make a thread so that there isn't millions of threads for each question. Here is a list of how to do commonly asked things to a MCCodes game. What is a style sheet(aka CSS)? Read about it here. http://en.wikipedia.org/wiki/Style_shee ... lopment%29 How do I change the background color of my game? Add the following to your style sheet. body { background: #000; } How do I change the color of the text? Add the following to your style sheet. body { color: #000; } How do I change the color of the links? Add the following to your style sheet. a:link { color: #000; } How do I let the color of a link change when the cursor moves over it. Add the following to your style sheet. a:hover { color: #000; } How do I change the appearance of buttons and text boxes? Add the following to your style sheet. input { background: #FFF; color: #000; border: solid; border-width: 1px; border-color: #000; } How do I change the background color or text color of tables? Add the following to your style sheet. table { background: #FFF; color: #000; } How do I put a border around my game? Add the following to your style sheet. body { border: solid; border-width: 1px; border-color: #000; } How do I put a border around images on my game? Add the following to your style sheet. img { border: solid; border-width: 1px; border-color: #000; } Thats all I can think of right now. If you would like to know anything else, please make a post and I will add it. Quote Link to comment Share on other sites More sharing options...
Absolute Zero Posted September 9, 2007 Share Posted September 9, 2007 Re: F.A.Q. Nice guide, but I currently have a problem with changing background images IF in jail/hospital. Any Idea? Also if this even fits here, how do you make it so when you click a smilies or [underline] it gives you the code for underline and the smilies? Quote Link to comment Share on other sites More sharing options...
hamster01 Posted September 9, 2007 Author Share Posted September 9, 2007 Re: F.A.Q. How to change backgrounds and text when in hospital and jail? <?php if ($ir['hospital'] >= 1) { echo '<style type="text"css"> body { background: #FFF; color: #FF0000; }</style>'; } else if ($ir['jail'] >= 1) { echo '<style type="text"css"> body { background: #333; color: #FFF; }</style>'; } ?> 2. Javascript. function add_code(code,id) { var element = document.getElementById(id); element.value += code; } Quote Link to comment Share on other sites More sharing options...
Absolute Zero Posted September 9, 2007 Share Posted September 9, 2007 Re: F.A.Q. 2. Javascript. function add_code(code,id) { var element = document.getElementById(id); element.value += code; } And how would I make it so the code is [u*][/*u] when clicking underline, sorry if its a stupid question. Quote Link to comment Share on other sites More sharing options...
hamster01 Posted September 9, 2007 Author Share Posted September 9, 2007 Re: F.A.Q. 2. Javascript. function add_code(code,id) { var element = document.getElementById(id); element.value += code; } And how would I make it so the code is [u*][/*u] when clicking underline, sorry if its a stupid question. http://www.google.com/search?q=BBCode%20Engines Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted September 10, 2007 Share Posted September 10, 2007 Re: F.A.Q. I think some may find this extremely helpful...Im gonna move it to a new CSS section in the coding area. Quote Link to comment Share on other sites More sharing options...
YoungGold Posted September 10, 2007 Share Posted September 10, 2007 Re: F.A.Q. i dunno if it works with css but i sjut use <u></u> Quote Link to comment Share on other sites More sharing options...
hamster01 Posted September 10, 2007 Author Share Posted September 10, 2007 Re: F.A.Q. i dunno if it works with css but i sjut use <u></u> <style type="text/css"> p { text-decoration: underline; } </style> This is underlined text.</p> Quote Link to comment Share on other sites More sharing options...
3XTR3M3 Posted September 10, 2007 Share Posted September 10, 2007 Re: F.A.Q. cool Quote Link to comment Share on other sites More sharing options...
-CrAzY- Posted September 11, 2007 Share Posted September 11, 2007 Re: F.A.Q. http://64.233.183.104/search?q=cache:2t ... cd=2&gl=uk Quote Link to comment Share on other sites More sharing options...
Solid Snake Posted September 29, 2007 Share Posted September 29, 2007 Re: F.A.Q. how do you make it so that the game is like a game called chaotic wars but in a different colour and style NOTE: i dont want it to be too much like chaotic wars otherwise ill be copying Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.