View Full Version : Changing Color on a table based Java Game :-\


ChristianSax91
02-02-2004, 11:53 PM
Please help,

Please view this game,
http://javascript.internet.com/games/shift-it.html#source

When I place it on my website, the backround of the buttons with the letters A-O on them is gray, is there any way that I can change this?
Thank you,
:crying: ChristianSax91 :crying:

iamcrazy
02-03-2004, 07:40 PM
Use CSS [http://www.lissaexplains.com/css.shtml]
Whichever buttons you want not to be grey, you could either use style="background-color : whatever" on each <input type=button> tag, or you could define a CSS class with background-color : whatever and use class="className" in yer <input type=button> tags. Unless you mean background of the table that they're in. In which case, use bgcolor attribute, or CSS if you'd prefer to be more XHTML-compliant :-)

Moth
02-03-2004, 07:47 PM
Use CSS [http://www.lissaexplains.com/css.shtml]
Whichever buttons you want not to be grey, you could either use style="background-color : whatever" on each <input type=button> tag, or you could define a CSS class with background-color : whatever and use class="className" in yer <input type=button> tags. Unless you mean background of the table that they're in. In which case, use bgcolor attribute, or CSS if you'd prefer to be more XHTML-compliant :-)

If you want to be XHTML compliant then you'll need quotes around the input type too and you'll need to use short tag closing ;) <input type="button" />

There may also be a discrepancy with how you change the colour of a button using CSS - I'll edit my post if I find it.