<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>请自行举一反三
<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>请自行举一反三
解决方案 »
- jquery focus()跳转,ie6不支持,求高手解决!!!
- js如何删除数组中的空项
- 实在看不懂这个代码,哥哥姐姐能不能帮忙解释一下?
- 小白问题,在上传图片的表单中,浏览--选择图片---打开,在没提交之前,图片怎么显示出来,在表单上
- css的属性名如果带中划线为什么不能通过javascript理改,高手帮帮忙!
- 客户端IE禁止弹出窗口 如何写代码 仍能强制弹出窗口?
- 寻人!! leeyom 请进
- [help] 这段JS是用来做什么的?
- 动态改变div 的z-index属性的问题,[请帮忙改一下程序,谢谢!]
- jQurey的mouseenter事件
- 初来乍到,第一次问问题,请多多关照了!(如何获取刷新按钮事件的标志)
- 基于javascript的文本数据库
<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)"> </td>
</tr>
</table>
</body>
<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"> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td width="55%" bordercolor="#FF00FF"> </td>
<td width="27%" bordercolor="#FF00FF"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="252" rowspan="2" bordercolor="#CC99FF" bgcolor="#99CCCC"> </td>
<td height="24" bordercolor="#CC99FF" bgcolor="#99CCCC"> </td>
<td bgcolor="#9933FF"> </td>
</tr>
<tr>
<td bordercolor="#CC99FF" bgcolor="#99CCCC"> </td>
<td> </td>
</tr>
</table>
<div align="center"></div>
</center>
</body>
</html>