-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3672162
By: michelito
I have unn problem for calling a CSS class. I would like to call a CSS class when a click on a row in a text box. For example,when I click on the row green,my background become green.
I do like this
<listbox rows="1" mold="select">
<listitem label="green" class="green" />
<listitem label="red" class="red" />
<listitem label="yellow" />
</listbox>
My class is
.red {
background-color:red;
border-style:solid;
border-width:1px;
border-color:blue;
margin-left:225px;
padding:10px;
height:250px;
position:absolute;
left: 240px;
top:65px
}
It don't work,In fact ti's the word red that become red,not the background of the window.
thanks,
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3673244
By: tomyeh
The attribute for CSS class is called sclass, because getClass() is reserved by Java.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674313
By: michelito
How can I do for select a row? Is there a fonction like ONclick or onchange?
My problem is that I can't change the color of the background of the window.
The color of the row in the listbox change but not the background.
Asked: 2006-04-06 07:28:04 +0800
Seen: 368 times
Last updated: Apr 07 '06