如题
代码是:
<html>
<head>
<title>无标题文档</title>
<script>function show(){
document.all( "div1" ).style.display="none";
document.all( "div2" ).style.display="";
}function hlep(){
document.all( "div1" ).style.display="";
document.all( "div2" ).style.display="none";
}
</script>
</head><body>
<form>
<table><tr><td>
<div id="div1" align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top">1111
<input name="帮助" value="帮助" type="button" onMouseUp="show()"></td>
</tr>
</table>
</div><div id="div2" style="display:none" align="center">
<table width="100%" height="700" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top">2222<input name="" type="button" value="返回" onMouseUp="hlep()"></td>
</tr>
</table>
</div>
</td></tr></table>
</form>
</body>
</html>
代码是:
<html>
<head>
<title>无标题文档</title>
<script>function show(){
document.all( "div1" ).style.display="none";
document.all( "div2" ).style.display="";
}function hlep(){
document.all( "div1" ).style.display="";
document.all( "div2" ).style.display="none";
}
</script>
</head><body>
<form>
<table><tr><td>
<div id="div1" align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top">1111
<input name="帮助" value="帮助" type="button" onMouseUp="show()"></td>
</tr>
</table>
</div><div id="div2" style="display:none" align="center">
<table width="100%" height="700" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top">2222<input name="" type="button" value="返回" onMouseUp="hlep()"></td>
</tr>
</table>
</div>
</td></tr></table>
</form>
</body>
</html>
解决方案 »
- 如何把若干下拉列表里面的内容合并在一起输出到一个文本域内-急!
- 复选框选中传值给文本框的JS问题
- javascript中[ -~]是不是代表了非中文,为什么能这么表示呢?
- 问问:什么是作用域链?
- li的取值
- ASP.NET页面与JavaScript页面间传递参数的问题
- 怎么能做一个程序让1个页面上所有的图片都能在载入失败时重试。直至成功。
- 求 IE 4.0 对 HTML,javascript , css , XML/XSLT 等 支持的资料
- 关于网页中FORM里下拉菜单(<SELECT MENU><option>1</option></select>)的问题了
- 有关button的OnClientClick事件的问题
- JS 代码的问题上浮广告,不知道怎么再添加新的一页了,再线等
- 发一个web2.0 个人门户,类似飞鸽,大家评评
<head>
<title> 无标题文档 </title>
<script> function show(){
document.all("div1").style.display="none";
document.all("div2").style.display="";
} function hlep(){
document.all("div1").style.display="";
document.all("div2").style.display="none";
}
</script>
</head> <body>
<form>
<table> <tr> <td>
<div id="div1" align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top"> 1111
<input name="帮助" value="帮助" type="button" onclick="show()"> </td>
</tr>
</table>
</div> <div id="div2" style="display:none" align="center">
<table width="100%" height="700" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top"> 2222
<input name="" type="button" value="返回" onclick="hlep()"> </td>
</tr>
</table>
</div>
</td> </tr> </table>
</form>
</body>
</html>
是不是一点帮助就显示2222,点返回就显示1111嘛?
我这里看是好的哟
我是ie7
//--------------點擊按鈕顯示
點擊show(): 2222 [返回] ,有 滾動條(因為div2里面的table height="700" )
點擊hlep(): 1111 [帮助] ,無 滾動條