Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
webby_mn #1
Dynamic cell Color change
I am trying to change the bgcolor of a cell dynamically.
I have a table with 4 rows and each having its own ID. Need to change the
bgcolor of a particular cell from the color swatches. How can i do that
Rightnow i am having 4 radio buttons each assigned to a particular cell. First
i select the radio button and select the color from the swatch. Now this color
has to be applied to that particular cell instantly
Hope i am clear enough, Can someone here help me out
webby_mn Guest
-
setting color in cfgrid cell
Hi, I'd like to access particular cell properties in cfgrid to change its' background color. I know how to change whole row color or column color... -
Dynamic cell background color
I have a data grid that is displaying our SLA timings for various time frames. I would like to have the background of the cell change to red if the... -
Using different color in Datagrid cell
Hi, I am looking for a way to associate different color with different cells in the datagrid for example, the cell the have high numerical value... -
changing row color depending on a cell value
Hi all I want to change datagrid's row color depending on a cell value How can I do this? I think that I must write some code in bind method... -
mouseover in cell 1, change in cell 2
let's say i have 2 cells and what i want to create is, if i mouseover the text or image in cell 1, an image or text would appear in cell 2 ... -
Troyan #2
Re: Dynamic cell Color change
..style.background or just .bgColor.
To make instances of the rows, use a function that I made, it's called "retobj()".
var
ie4=typeof(document.all)?1:0,ie5=typeof(document.g etElementById)?1:0,ns4=typeof(document.layers)?1:0
;
function retobj(nome, alvo) { if (arguments.length > 1) { alvo=alvo+'.'; } else { alvo=""; }
if (ie4) { return eval(alvo +"document.all."+ nome); }
else if (ie5) { return eval(alvo +"document.getElementById('"+ nome +"'"); }
else if (ns4) { return eval(alvo +"document."+ nome); }
else { return false; }
} //Troyan - <dnunes@email.com>
Something like..
retobj('ID').style.background="#AAAAAA";
or..
retobj('ID').bgColor="#AAAAAA";
[]s
--
- Rio de Janeiro, Brasil
- Troyan <dnunes@email.com>
Troyan Guest
-
danny cobbinah #3
Re: Dynamic cell Color change
<TD width=596 height=25><div align="right">House number & Street Name
</div></TD>
<TD width=382 height=25><INPUT name=hnum_stnm id=hnum_stnm
size=40 onmouseover="this.style.backgroundColor = '#eeeef9';
this.style.borderColor = '#000088';" onmouseout="this.style.backgroundColor
= ''; this.style.borderColor = '';"></TD></TR>
"webby_mn" <naresh31@indiainfo.com> wrote in message
news:c0aa68$li3$1@forums.macromedia.com...First> I am trying to change the bgcolor of a cell dynamically.
>
> I have a table with 4 rows and each having its own ID. Need to change the
> bgcolor of a particular cell from the color swatches. How can i do that
>
> Rightnow i am having 4 radio buttons each assigned to a particular cell.color> i select the radio button and select the color from the swatch. Now this> has to be applied to that particular cell instantly
>
> Hope i am clear enough, Can someone here help me out
>
danny cobbinah Guest



Reply With Quote

