<body onclick="if(window.event.srcElement.id !='mxh'){ document.all.mxh.style.visibility='hidden';document.all.sel.style.visibility='hidden'}">
<div id=mxh style="width:200px;height:200px;visibility:visible;background-color:blue;z-index:100" onclick="document.all.mxh.style.visibility='visible';document.all.sel.style.visibility='visible'">
<select id=sel style="visibility:visible">
<option>sdfd</option>
</select>
</div>
</body>
<div id=mxh style="width:200px;height:200px;visibility:visible;background-color:blue;z-index:100" onclick="document.all.mxh.style.visibility='visible';document.all.sel.style.visibility='visible'">
<select id=sel style="visibility:visible">
<option>sdfd</option>
</select>
</div>
</body>
解决方案 »
- 从数据库取出两组一样经纬度数据,然后显示在百度地图上,有什么办法可以区分这两个点
- 图片变换效果IE6 给终止了(就是打开一半就说已终止),火狐就没事 高手给看看啊
- 100分!咨询all.item在IE和FF区别的问题!在线等待!
- JS获取ASP传过来的值怎么取啊?
- 怎样去除执行window.close()后弹出的‘是否关闭窗口’对话框
- 怎样取得某一网页的源代码??
- Radior的length属性
- 如果实现这个东西
- 将一个纪录集存放到Hashtable中,怎么处理呢?
- sunbeamy(阳光灿烂的深夜) 请进
- try....catch.....错误
- 在网速极差的情况下,一幅图片等了很长时间打不开就会显示一个红叉,请问怎么改这个超时设置?我想改尽量长一点
我想实现的类似select,点击右侧下拉按钮,显示下拉框。
当然这个下拉框里的东西比较多,比如说是个日历。
如果用户点击下拉框外的其他的地方,下拉框自动隐藏。
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td style="border:3px groove #eeeeee;height:19px">
<input id=xh style="border:0px solid #080808;border-right:0px;height:18px"><input id="mm" style="font-family:Webdings;font-size:9pt;height:18px;" type=button value='6' onclick="document.all.mxh.style.visibility='visible'"></td>
</tr>
<tr>
<td>
<div id=mxh style="visibility:hidden;width:100%;border:1px solid #080808">
<table width="100%">
<tr onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''">
<td onclick="document.all.xh.value=this.innerText"><a href="http://lucky.myrice.com">Visit1</a></td>
</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.xh.value=this.innerText"><a href="http://lucky.myrice.com">Visit2</a></td>
</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.xh.value=this.innerText"><a href="http://lucky.myrice.com">Visit3</a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
现在我在class中需要调用
document.body.attachEvent("onclick",this.id+".hidden()");
这样就无法达到我封装的目的了。