有按钮A和B,
当点击按钮A时,<div id="aaa"></div> 控件隐藏
当点击按钮B时,控件显示
当点击按钮A时,<div id="aaa"></div> 控件隐藏
当点击按钮B时,控件显示
解决方案 »
- c#字符串随机排列
- c#2005.问一下winFrom程序如何创建XML文件?
- 请问学会C#是不是就能做出.aspx后缀的网页?
- 求解决
- net 1.1 framework 注册的问题
- 有想法的C#工程师请进。。
- 哪位知道哪有C# Web服务的书下载
- 请问用c#如何实现文件上传
- 关于执行 SqlCommand com = new SqlCommand(sql,con);的问题
- 关于C#学习书的选择????
- 大家来来看看这段简单代码 thredm 函数以开始会执行几次? 并说明一下原因
- 关于dll动态加载的问题~无法将类型为WpfControl.UserControl1的对象强制转换为类型System.Windows.window~
function showQueryPanel(divID){
od = document.getElementById(divID);
if (od.style.display == "")
typeID=1;
else
typeID=2; if(typeID == 1 ){
od.style.display = "none";
}else {
od.style.display = "";
}
}
<html>
<head>
<script type="text/javascript">
function a()
{
document.getElementById('aaa').style.display = "none";
}
function b()
{
document.getElementById('aaa').style.display = "";
}
</script>
</head><body>
<div id="aaa">
<input type="button" value="bbb" /></div>
<input type="button" value="a" onclick="a()"/>
<input type="button" value="b" onclick="b()"/>
</body>
</html>
function setTab(flag)
{if(flag=="0"){ document.getElementById("diV1).style.display = "";
document.getElementById("div2).style.display = "none";
}else if(flag=="1"){ document.getElementById("diV1").style.display = "none"; document.getElementById("diV2").style.display = "";}}
调用的时候 onclick="setTab(A)"//A为1 or 0