<div class="leftfont3" style="margin-left:7px; margin-top:3px; cursor:pointer" ><span onclick="javascript:show_hidd('xuanze');">切换学校</span></div>
下面的层是隐藏的,用show_hidd把下面的层显示出来
<div id="xuanze" >
<form action="e_ziyuan_connent.asp" target="ziyuan" method="post">
<ul style="list-style:none; ">
<li> 省:<%=read_sheng()%></li> <li style="float:left"> 大学:</li><li id="ceshi" style="float:left"><select style="width:140px"><option value="">学校不限</option></select></li><li style="float:left;width:60px; margin-left:10px"><input name="ok" type="submit" value="切换"/></li><li style="float:left; width:60px"><input name="quxiao" type="button" value="取消" onclick="show_hidd('xuanze');"/></li></ul></form>
</div>//==================显示与隐藏某一个层
function show_hidd(div){
if (document.getElementById(div).style.display=='none'){
document.getElementById(div).style.display='block';
}
else{
document.getElementById(div).style.display='none';
}
}
下面的层是隐藏的,用show_hidd把下面的层显示出来
<div id="xuanze" >
<form action="e_ziyuan_connent.asp" target="ziyuan" method="post">
<ul style="list-style:none; ">
<li> 省:<%=read_sheng()%></li> <li style="float:left"> 大学:</li><li id="ceshi" style="float:left"><select style="width:140px"><option value="">学校不限</option></select></li><li style="float:left;width:60px; margin-left:10px"><input name="ok" type="submit" value="切换"/></li><li style="float:left; width:60px"><input name="quxiao" type="button" value="取消" onclick="show_hidd('xuanze');"/></li></ul></form>
</div>//==================显示与隐藏某一个层
function show_hidd(div){
if (document.getElementById(div).style.display=='none'){
document.getElementById(div).style.display='block';
}
else{
document.getElementById(div).style.display='none';
}
}
解决方案 »
- 怎么把内容打开网页显示,但查看源码时看不到
- 请问这段有什么错误,谢谢
- 求教关于extjs4.2中tabpanel的问题,为什么在火狐浏览器中每次切换tab页时都会自动重新加载内容?
- 怎么在客户端显示这个XML文件。。有具体要求。。
- 各位大哥大姐,有人会直接指定某台打印机打印页面吗?
- if(document.layers){ //这句是什么意思?是检测网页中有没有layer存在吗?
- JAVASCRIPT中如何判断窗体中是否存在名字为给定值的对象?
- 开窗口向父窗口进行赋值的问题???
- 有没有办法不屏蔽右键,却看不到代码?
- <th class="sortable sorted ${ order }">
- 表格的高亮显示
- utf-8里不能用下拉菜单怎么办?
之前在maxthon中也遇到过类似情况,我记录鼠标的点击数,在ie中点一下算1,2是2;但在maxthon中点1是,再点一下就不是2而变为3了,不是一定是这样的,要特定的用法才会发生
跟js的用法显示有点关系,