<script type="text/javascript">
function notice() {
document.getElementById(arguments[0]).style.display = arguments[1];
}
</script>
<tr>
<td>MySQL服务器地址</td>
<td>
<input name="host" type="text" onfocus="notice('1','')" onblur="notice('1','none')" value="localhost"/>
<td><div id="1" class="notice" style="display:none;">一般都为localhost,即服务器的地址 </div>
</tr>
解决方案 »
- 如何向xmlHttp的statechange事件处理函数传递参数?
- 第三个文本框根据前两个文本框的值 联动?
- 这样的字符串任何组合
- 用javascript写了模拟java中Map,Set两个类,请大家帮忙看看,指出不足的地方,谢谢了!!
- 表格的单元格中有一个图片,怎么样让鼠标移动到图片上方时改变成一个小手的形状?
- oo和event的问题,obj.func(event){}中如何引用对象本生?
- javascript中如何比较两个日期的大小
- 如何对URL后的参数编码?
- [请问]在页面上如何得到text1的回车,而跳到另一个text2,
- 在netscape4.7下编码为什么这样
- 如何才能得到innerHTML中包含的标签
- 怎么取得input的上一个td中的值?
function notice(id,showFlg) {
if ("1" == showFlg) {
document.getElementById(id).style.display = "";
}
if ("0" == showFlg) {
document.getElementById(id).style.display = "none";
}
}