DeathStar Posted November 22, 2006 Share Posted November 22, 2006 IS there any way to change colors on page so that users can select wich colors they want?i've seen this before on many websites!like tickboxes with[list][*]Blue[*]Red[*]Green[*]Yellow[/list] to select a color Quote Link to comment Share on other sites More sharing options...
DeathStar Posted November 22, 2006 Author Share Posted November 22, 2006 This Sud be in PHP anywayz! Quote Link to comment Share on other sites More sharing options...
fenway Posted November 22, 2006 Share Posted November 22, 2006 Actually, it should be in the JS forum... and you should be able to set the backgroundColor property from the onchange of a dropdown. Quote Link to comment Share on other sites More sharing options...
AndyB Posted November 24, 2006 Share Posted November 24, 2006 In case you haven't found a script yet ... http://www.computerhope.com/htmlback.htm Quote Link to comment Share on other sites More sharing options...
Renlok Posted November 27, 2006 Share Posted November 27, 2006 yeah this can be done with javascript, you can use it to switch between stylesheets.it has nothing to do with php. Quote Link to comment Share on other sites More sharing options...
DeathStar Posted November 30, 2006 Author Share Posted November 30, 2006 Thank you[code]<form>Change the background color:<select name="backGround" size="1" onChange=(document.bgColor=backGround.options[backGround.selectedIndex].value)><option value="000000">[Black]<option value="730200">[Dark Red]<option value="231800">[Brown]<option value="044302">[Dark Green]<option value="0D09A3">[Dark Blue]<option value="444444">[Gray]<option value="FF0400">[Red]<option value="EFE800">[Yellow]<option value="05EF00">[Green]<option value="0206FF">[Blue]<option value="AE08EF">[Violet]<option value="FF8C8A">[Mauve]<option value="FFCCCC">[Peach]<option value="FFCC99">[Orange]<option value="D5CCBB">[Tan]<option value="DDDDDD">[Light Gray]<option value="FBFF73">[Light Yellow]<option value="7CFF7D">[Light Green]<option value="A6BEFF">[Light Blue]<option value="FFFFFF" selected>[White]</select></form>[/code] Quote Link to comment Share on other sites More sharing options...
DeathStar Posted November 30, 2006 Author Share Posted November 30, 2006 Is there also a script for font color changing? 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.