<table id="eyun" border="1">
  <tr>
    <td>1</td>
    <td>2</td>
  </tr>
  <tr>
    <td>3</td>
    <td>4</td>
  </tr>
</td>
</table>
<button onclick="eyun.rows[0].cells[0].width=100">变宽</button><button onclick="eyun.rows[0].cells[0].height=100">变高</button><button onclick="eyun.rows[0].cells[0].bgColor='#FF0000'">改变颜色</button>请自行举一反三

解决方案 »

  1.   

    楼主可以看一下DHTML的一些内容.
      

  2.   

    等你娶了老婆,你是不是接着问:GG们,快来帮忙啊,接下来怎么做啊……还是回答楼主一下:看看书或者dreamweaver里面的code的reference中也有简要帮助
      

  3.   

    晕倒,楼主还是结了吧,把分给我算了……onmousedown dosomething onmousemove dosomething onmouseup dosomething等你会使用了估计你也这么答别人来着,有空再给你个简单例子
      

  4.   

    希望楼主可以举一反三
    <script language="JavaScript">
    var dragable = false
    function down(w, h)
    {
    if (event.x > parseInt(w) && event.y > parseInt(h))
    {
    dragable = true
    }
    else
    {
    dragable = false
    }
    }
    function move()
    {
    if (dragable)
    {
    t.style.width = event.x
    t.style.height = event.y
    }
    return false
    }
    function up()
    {
    dragable = false
    }
    document.onmousemove =  new Function("return move()")
    document.onmouseup = up
    </script>
    <body style="margin:0px">
    <table  border="1" cellspacing="1" cellpadding="1">
      <tr>
        <td id="t" style="width:100px;height:100px" onMouseDown="down(this.style.width,this.style.height)">&nbsp;</td>
      </tr>
    </table>
    </body>
      

  5.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body >
    <center>
      <table width="88%" height="558" border="1">
        <tr bordercolor="#9900FF" bgcolor="#9966FF"> 
          <td width="18%" height="80">&nbsp;</td>
          <td colspan="2">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td width="55%" bordercolor="#FF00FF">&nbsp;</td>
          <td width="27%" bordercolor="#FF00FF">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="252" rowspan="2" bordercolor="#CC99FF" bgcolor="#99CCCC">&nbsp;</td>
          <td height="24" bordercolor="#CC99FF" bgcolor="#99CCCC">&nbsp;</td>
          <td bgcolor="#9933FF">&nbsp;</td>
        </tr>
        <tr>
          <td bordercolor="#CC99FF" bgcolor="#99CCCC">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    <div align="center"></div>
    </center>
    </body>
    </html>