![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 1
Rep Power: 0
![]() |
Cell Manipulation
I'm trying to change the background image of a cell with a button click and add text within the cell. I'm not to familiar with innerTEXT or how to do this. Here is the code I have:<html> <head> <script language=javascript> function textCHK() { if (document.form1.text1.value == 'change') { } } </script> </head> <body> <form name="form1"> <table border> <tr> <td align="center"> <input type="text" id="text1"><br> <input type="button" value="Change Table" onClick="textCHK()"> </td> </tr> <tr> <td height="12" width="230" id="cell1"> </td> </tr> </table> </form> </body> </html> |
|
|
|
|
|
#2 |
|
Programmer
|
As per usual, I answer with something I've never actually used, but have seen in action:
http://webmonkey.wired.com/webmonkey...tw=programming
__________________
I had a dream that Triumph the Insult Dog owned Microsoft... How...appropriate. |
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
This is simple enough:
<input type="text" id="text1" /><br />
<input type="button" value="Change Table" onclick="document.getElementById('text1').style.backgroundColor = '#FF0000';" /> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|