<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>
解决方案 »
- 有两个变量v1和v2,如何转换成{v1: v2}这样的json变量
- 买票==no
- 请教一个商品高级搜索代码的修改
- 网页中加入flash,关闭flash为什么flash的声音没有关闭!该怎么做
- 请教一下,一个input如何通过语句动态的设置它的readonly值??
- 如何接收对象变量?
- 紧急求助:怎样在脚本中编写用手工调用ActiveXObject方法创建的对象的事件处理程序?
- 请问如何控制运算过程中的数字精度?救急!!!
- HTML源码模式编辑下div标签自动替换成了p标签
- 有没有在网页上执行搜索,搜索的对象是服务器磁盘文件名和内容。
- 还是入门问题
- 关于在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>