我把一个iframe框架放在了一个层里,现在我希望在框架外点下鼠标就实现层的隐藏,请问我该如何操作?
据说ajax可以实现,不过我对这个不太熟,还请高手详细讲讲,感激不尽!
据说ajax可以实现,不过我对这个不太熟,还请高手详细讲讲,感激不尽!
解决方案 »
- 类型为“System.DateTime”的表达式不能用于返回类型“System.Object”
- 注册表操作!
- JS error
- 真是怪事,VS打开c#源码中的中文字符乱码,但是老师的机器正常
- 格式字符的问题!!!
- 请问:C#环境里,有用过运动控制卡、io卡等板卡的么?
- 如何在c#中,编辑文件的摘要信息?
- .^^.开源:C#.NET开发的MIS打印程序,各种网格如DataGrid打印、DataTable、HtmlTable等二维形式全搞定,源码免费下载
- 如何让MessageBox在屏幕的指定位置显示?
- 请问[换行][回车换行]有什么区别?
- 为什么这样谁帮我看下
- 超大数计算问题:如何进行超大数的计算
层.style.display = "none";
}
function tempclick1(cid)
{
document.getElementById("<%=hiddenpaper.ClientID%>").value=cid;
document.getElementById("<%=linkbutton1.ClientID%>").click();}function closediv1(){
document.getElementById('show1').style.display="none";}
var out1 = true;function checkdiv(evt){
var obj = evt.srcElement ? evt.srcElement : evt.target;
if(out1==1){
closediv1();
}
}
<body onclick=checkdiv(event)><asp:LinkButton ID="linkbutton1" OnClick="show11" runat="server"/>
<div onmouseover="out1 = false;" onmouseout="out1 = true;" style="position:absolute;width:600;height:160;z-index:100" id="show1" ><iframe runat="server" id="iframe1" visible="false" src="\UserContorls\class1.aspx" style="width:600px; height:160px"></iframe></div>
</body>
protected void show11(object sender, EventArgs e)
{
iframe1.Attributes.Add("src", @"\UserContorls\class1.aspx?cid=" + hiddenpaper.Value);
iframe1.Visible = true;
}