Cell background color change

I want to change the color of a table cell whenever the mouse pointer is over it. How can I do it?

Comments

  • I think you would have to do something like this:


    Then have a JavaScript function in the HEAD that looks a bit
    like this:

    function Change_Colour()
    {
    document.mytable.mycell.bgcolor = red;
    }

    Hope this helps.


    I want to change the color of a table cell whenever the mouse pointer is over it. How can I do it?
    :

  • : I think you would have to do something like this:
    :
    :
    :
    : : :

    :
    :
    :
    : Then have a JavaScript function in the HEAD that looks a bit
    : like this:
    :
    : function Change_Colour()
    : {
    : document.mytable.mycell.bgcolor = red;
    : }
    :
    : Hope this helps.
    :
    :
    : I want to change the color of a table cell whenever the mouse pointer is over it. How can I do it?
    : :
    :
    :
    Thanks a lot!!!
  • [b][red]This message was edited by Apotheosis at 2003-7-10 14:42:40[/red][/b][hr]
    : I want to change the color of a table cell whenever the mouse pointer is over it. How can I do it?
    :
    [code]
    blah
    [/code]


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories