<body>
<input type=button value=Ak47 name=Ak47 onclick=go2() style="display:none">
<input type=button value=M16 name=M16 onclick=go2() style="display:">
<script language=javascript>
function go2()
{
if(M16.style.display=='')
{
Ak47.style.display=""
M16.style.display="none"
}
else{
Ak47.style.display="none"
M16.style.display=""
}
}
</script>
</body>
</html>
<input type=button value=Ak47 name=Ak47 onclick=go2() style="display:none">
<input type=button value=M16 name=M16 onclick=go2() style="display:">
<script language=javascript>
function go2()
{
if(M16.style.display=='')
{
Ak47.style.display=""
M16.style.display="none"
}
else{
Ak47.style.display="none"
M16.style.display=""
}
}
</script>
</body>
</html>
解决方案 »
- 不知道如何调用这样的函数
- javascript 全局变量
- 如何接收对象变量?
- 查客户机器上安装的office 软件的版本呢
- 如何用js写,判断一个时间格式?
- 用js写的下拉菜单遮不住<select>下拉列表,各位有什莫好办法吗?
- 请问如何在一个框架页面获取另外一个框架页的URL
- ('2003/9/4' > '2003/9/30') 为true 我希望他为false ,即当成日期来看待
- 怎样将form里的对象替换掉?
- Javascript print方法打印怎么把表格的bkcolor或background打印出来?
- 还是入门问题
- 关于在IE6中无法运行IEWebBrowser组件的execWB方法
<body><form name=form1>
<input type=button name=Ak47 value=Ak47 onclick="this.style.display='none';document.form1.M16.style.display=''">
<input type=button name=M16 value=M16 onclick="this.style.display='none';document.form1.Ak47.style.display=''" style="display: none">
</form></body>
</html>