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 Link to comment https://forums.phpfreaks.com/topic/28102-changing-colors/ Share on other sites More sharing options...
DeathStar Posted November 22, 2006 Author Share Posted November 22, 2006 This Sud be in PHP anywayz! Link to comment https://forums.phpfreaks.com/topic/28102-changing-colors/#findComment-128550 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. Link to comment https://forums.phpfreaks.com/topic/28102-changing-colors/#findComment-128609 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 Link to comment https://forums.phpfreaks.com/topic/28102-changing-colors/#findComment-129809 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. Link to comment https://forums.phpfreaks.com/topic/28102-changing-colors/#findComment-131173 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] Link to comment https://forums.phpfreaks.com/topic/28102-changing-colors/#findComment-132487 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? Link to comment https://forums.phpfreaks.com/topic/28102-changing-colors/#findComment-133055 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.