Reply to Re: changing background color of multiple select

Your name:

Reply:


Posted by Bosconian on 05/03/06 19:36

"Bosconian" <bosconian@planetx.com> wrote in message
news:guWdnT2ZON8g98XZRVn-pQ@comcast.com...
> I have two multiple select inputs. Initially the first contains a bunch of
> items and the second is empty. Using a common method, I move items back
and
> forth by double clicking on them.
>
> This portion works perfectly, but I would also like to change the
background
> color of the select element with the current focus.
>
> I have defined the following classes:
>
> .selected {
> background: #C0FFFF
> }
> .deselected {
> background: #FFFFFF
> }
> Using the following function below I am able to shift the background color
> of rows containing content, but the color of the empty rows remain the
> "selected" color. How can this effect be achieved for all rows, whether
they
> contain content or not?
>
> Thanks!
>
> -----------------------------------------------------------
>
> function changeBackground(obj,theSelect) {
> for (var i=1; i<obj.length; i++) {
> obj[i].className = 'deselected';
> }
> obj[theSelect].className = 'selected';
> }
>
>

Disregard--wrong group. Doh!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация