ASP页面上的js问题
div的隐藏与显示效果出不来,alert后发现方法是进去了,但是div是动都没动!
<title>无标题页</title>
<link href="../AdminService/Administer/css1/left_css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
li{
list-style-image:url(../AdminService/../AdminService/images/closed.gif);}
ul{
text-align:left;
}
</style>
<script>
function show(div){
id=eval(div.id+div.id.substring(3,4));
if(id.style.display == "none")
{
alert("block");
id.style.display == "block"
}else
{
alert("none");
id.style.display == "none"
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="width:175px; text-align:center">
<div id="div1" onclick="show(this)" style="width:162px; height:22px; background-image:url(../AdminService/images/left_tt.gif);" class="STYLE1">成员管理</div>
<div id="div11" style="width:162px">
<ul>
<li>添加成员</li>
<li>成员浏览</li>
</ul>
</div>
</div>
</form>
</body>
</html>
...全文
相关推荐
asp.net+javascript经典页面特效
很漂亮的JS页面特效,类似Flash,可以美化页面开拓思路,源代码详细,asp.net+javascript
页面制作统一的头尾的方法(asp+js)
有时候我们需要统一页面的头尾,如果不是独立,每次要修改文件,就要所有的模板页面都要修改增加麻烦,所以,独立头尾调用,就只需要修改两个页面就可以了。
ASP.NET+JS图片轮换代码
ASP.NET+JS图片轮换代码,出现问题。。
asp+js无刷新更新
asp+js无刷新更新 实用的无刷新技术
ASP.NET-C和Google-Map:ASP.NET C#和Google Map Solved页面未加载
ASP.NET-C和Google-Map:ASP.NET C#和Google Map Solved页面未加载


