Re: Change cell colour with selection from a drop down menu
| From: | Marek Kilimajer | Date: | Tue, 30 Sep 2003 11:19:34 +0000 |
| Subject: | Re: Change cell colour with selection from a drop down menu | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164374@lists.php.net to get a copy of this message | ||
irinchiang@justeducation.com wrote:
Hi all,<select onchange="changeColor(this.value);"> <option value="Blue">Blue</option> <option value="Red">Red</option> </select> changeColor(c) { var e; e = (document.all ? document.all.elementId : document.getElementById('elementId')); e.style.backgroundColor = c; }I would like to create a dynamic kinda "Timetable" whereby I can add,del, and modify the data contained in each cell. Besides that, each cell in the table should have its unique colour in which this unique colour can be modified anytime to a different colour through an interface, most probably to be able to change the cell colour with selection from a drop down menu. ( This is the part where I really need some help. )How can this be done? Technology used are: PHP & MySQL If you don't want your users to wait for server responce each time they touch something, use javascript.
Regards, Irin.