Ok I Am Trying to write a script were users can change colors to there own prefers and i have some of the codes wrote but am very confussed how to get it to work property. But I have <div> and wanted to write them from css well here is the codes anyways:thanks advance and I am not sure if that is even how to set it up were members can change the colors. but thanksCode:<select id="ddlColors" style="background-color: White;"> <option style="background-color: red;">1</option> <option style="background-color: Blue;">2</option> <option style="background-color: Fuchsia;">3</option> <option style="background-color: Gray;">4</option> </select> <script> $("select").change(function() { $("select").css("background-color", $("select option:selected").css("background-color")); }) .change(); </script> <table width="100%" border="0" bgcolor="**right here is were i wanna change color**"> <tr> <td><div></div></td> </tr> </table>
Last edited by WingedPanther; 11-06-2009 at 09:08 AM. Reason: add code tags (the # button)
Are you doing this with jQuery?
well see someone gave that code to me and said start with this. like I said this is my first time and not sure how to set it up so members can change the background color of the <div> tags background from the css style sheet
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks