<table>
<tr>
<td onclick="showwords()"><span id="showword"></span></td>
</tr>
</table>
<script>
function showwords(){
showword.innertext="输入的汉字";
}
</script>
不知道对不对。
<tr>
<td onclick="showwords()"><span id="showword"></span></td>
</tr>
</table>
<script>
function showwords(){
showword.innertext="输入的汉字";
}
</script>
不知道对不对。
解决方案 »
- 望指教一下jquery的each问题
- 推荐一个好用的列头可拖动的TABLE
- 打印不出原型扩展方法中的值
- 如何循环读取select下拉列表的Value值,并把Value值累加。
- 请教一个div层的问题!~~
- 如何使一个输入框只接收数字?在任何输入法下都要有效。
- 求解为什么添加节点添不上去
- 如何对图象进行分割?急!
- 如何判断一个页面是在一个新窗口打开的,还是在一个Frame中打开的?
- !!!!!!!!!!!!!!!千万火急!什么对象具有style属性。下面这段javascript代码。总是提示bignannerdiv没有定义。请问应该怎么定义。才能具有.style.pixelLeft的属性
- 谁有类似tabcontrol / tabpanel的JS源码????????
- 有没有办法可以令网页中的链接在指定的时间后生效
<head>
<script>
function show()
{
document.getElementById("td1").innerText="我要显示的文字";
}
</script>
</head>
<body>
<table>
<tr><td id="td1"></td></tr>
<tr><td><input type="button" value="go" onclick="show();"></td></tr>
</table>
</body>
</html>