The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

background color problems together with onclick.. (i almost have it)

Hey,

i`ve made a little script that allows you to hover over a table and the background color will change.. than when you move out it will change back to default.. that`s all fine.. the clicking part is the part that gives me the most pain.. at this moment you can click on it and the background color gets orange (like i want it) but now the problem is that i want 2 other things in it and i can`t get them working :S

you see a checkbox on the left.. i want to make it so that when the checkbox is checked the entire row gets orange.. when the chechbox is unchecked the entire row must be default again.. but i`m not getting that working.. also the checkbox must turn on/off when you click anywhere in that row.. not just on the checkbox itself.. any help would be verry nice

thanx alot for the fast reply
for the colors.. this was all just for testing purpose.. the end result will be done with styles

and i request.. i see you gave some names to the checkboxes.. i wonder if it`s possible to do it without names or id`s.. because i want to loop those rows in php and i`m not sure if javascript is gonna take that..

edit:://
tested it in the loop and that really screws it up :P could be because of the php code ofcause :P

here is that code:
and i`m just testing it.. the code will get cleaner and better in time!!

Perhaps you could, but why? You'll still need to name them in order to pass to php script.

read my edit please :P

again edited..
question for you i`m currently making a phpmyadmin alternative.. i have all the php knowledge to make it but not all the javascript knowledge.. and you seem to know alot about it.. would you like to join me in making that script? it`s called LightAdmin but the name can still be changed.. for now it`s just all kinds of test things put together..

could you let me know if you want to join? or want to hear all the idea`s i have with the script..??