Dynamic cell Color change

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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 ...
  3. #2

    Default 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

  4. #3

    Default Re: Dynamic cell Color change

    <TD width=596 height=25><div align="right">House number &amp; 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...
    > 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
    >

    danny cobbinah Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139