This is a discussion on "Select a row and go! Please help?" within the JavaScript Forum section. This forum, and the thread "Select a row and go! Please help? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Select a row and go! Please help?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I can't understand what I'm doing wrong this this if else statement, if I take out the else, the function works (someone helped me with that too)
I need to check the objects classname, if it's white, then set the background to white, if it's gray set the background to gray, but if it's clicked (selected) set the background to another color. here's the code:
|
|
|
|
|||
|
Re: Select a row and go! Please help?
1. background coler oenlee appli tu a object yu kan see on the skreen...not tu a javascript varabel.
2. if yu yuze a drop box, the selected box automatik get blue so it stand out from all other boxes. 3. Yu kan make a tabel with a bunch av boxes, all with the same name. Then yuze onFocus or onMouseOver tu chaenj its background koler. Tu be konsistant, put same kode for all boxes onmouseover=koler1 onmouseout =koler2. 4. yu kan name all the boxes with the same name, then yu kan yuze getelementbyid on em & yuze javascript tu chaenj the backgound koler. |
![]() |
| Tags |
| select, row, help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| chained select box dependable select | thenamenoonehastaken | JavaScript Forum | 0 | Feb 8th, 2008 05:49 |
| Select from many tables! | kool77 | Databases | 2 | May 30th, 2007 20:09 |
| Help Please Select Max Not Working | rosh1e | PHP Forum | 3 | May 13th, 2007 19:11 |
| CSS and select | djme | Web Page Design | 1 | Mar 2nd, 2006 02:05 |
| SELECT statement | gecastill | Databases | 1 | Feb 15th, 2006 23:27 |