点击“登录”或者“注册”按钮,出一个“登录”或者“注册”对话框给你填写,后面置灰
2008-01-31 14:29
483 查看
js:
<head runat="server">
<title> 无标题页 </title>
<script type="text/javascript">
function showMydiv()
{
document.body.scroll="no";
if(window.screen.Height> =document.body.scrollHeight)
{
id1.style.height = (window.screen.height - 155) +"px";
}
else
{
id1.style.height = (document.body.scrollHeight) + "px";
}
mydiv.style.position='absolute';
id1.style.width = (window.screen.width - 25) + "px";
id1.style.display = '';
mydiv.style.display = '';
// var frameId='myiframe';
// frameSrc='xxx.aspx';
// frames[frameId].document.write('loading...');
// frames[frameId].document.close();
// frames[frameId].location.href = frameSrc;
return false;
}
function HiddenDiv()
{
mydiv.style.display='none';
id1.style.display='none';
}
</script>
</head>
html:
<asp:Button ID="Button3" runat="server" Text="Button" OnClientClick="return showMydiv()"/> </div>
<div id="mydiv" style="width:730px;height:900px;margin-top:-150px;margin-left:-300px;left:45%;top:27%;display:none;z-index:50;">
<table width="100%">
<tr>
<td align="right"> <input id="Button2" type="button" value="X" onclick="HiddenDiv()"/>
</td>
</tr>
<tr>
<td align="center"> <iframe id="myiframe" width="100%" height="550px" scrolling="no" style="border-top-style: outset; border-right-style: outset; border-left-style: outset; border-bottom-style: outset"> </iframe>
</td>
</tr>
</table>
</div>
<div id="id1" style="filter:Alpha(opacity=20);background-color:#000;position:absolute;top:0;left:0;z-index:49;display:none;">
<input id="hda" type="text" style="display:none" name="hda" />
</div>
<head runat="server">
<title> 无标题页 </title>
<script type="text/javascript">
function showMydiv()
{
document.body.scroll="no";
if(window.screen.Height> =document.body.scrollHeight)
{
id1.style.height = (window.screen.height - 155) +"px";
}
else
{
id1.style.height = (document.body.scrollHeight) + "px";
}
mydiv.style.position='absolute';
id1.style.width = (window.screen.width - 25) + "px";
id1.style.display = '';
mydiv.style.display = '';
// var frameId='myiframe';
// frameSrc='xxx.aspx';
// frames[frameId].document.write('loading...');
// frames[frameId].document.close();
// frames[frameId].location.href = frameSrc;
return false;
}
function HiddenDiv()
{
mydiv.style.display='none';
id1.style.display='none';
}
</script>
</head>
html:
<asp:Button ID="Button3" runat="server" Text="Button" OnClientClick="return showMydiv()"/> </div>
<div id="mydiv" style="width:730px;height:900px;margin-top:-150px;margin-left:-300px;left:45%;top:27%;display:none;z-index:50;">
<table width="100%">
<tr>
<td align="right"> <input id="Button2" type="button" value="X" onclick="HiddenDiv()"/>
</td>
</tr>
<tr>
<td align="center"> <iframe id="myiframe" width="100%" height="550px" scrolling="no" style="border-top-style: outset; border-right-style: outset; border-left-style: outset; border-bottom-style: outset"> </iframe>
</td>
</tr>
</table>
</div>
<div id="id1" style="filter:Alpha(opacity=20);background-color:#000;position:absolute;top:0;left:0;z-index:49;display:none;">
<input id="hda" type="text" style="display:none" name="hda" />
</div>
相关文章推荐
- QT的一个奇怪问题,设置了Qt::Tool后,点击弹出对话框的确定取消按钮,程序直接退出。
- 1. 简单的加法计算器,用户在文本框1,2中输入两个数,点击按钮,在文本框3中显示两个数的和。如果1或者2为错误的数据格式,则弹出对话框提示错误。
- discuz如何把登录框移到最顶的菜单栏,只显示一个登录和注册按钮?
- asp.net中按钮的后台点击事件怎样才能打开一个对话框?(ext中的window)
- highcharts插件中,在外部点击一个按钮或者别的时间,可以链接highcharts上点击事件
- 如何实现js展开收起(折叠)效果呢?例如:一段内容过长了,我限制他显示为20个字内,但是超出了20的就先用省略号代替,然后后面添加一个展开,点击展开后就显示所有的内容,这时候展开按钮就变成了 折叠按钮
- asp.net 点击一个按钮弹出对话框选择文件然后选择文件完成之后就自动上传文件 input(file)
- MFC实现点击按钮打开一个指定的文件或者网址或者exe
- C#中点击一个按钮后,弹出“数据连接属性”对话框
- QT的一个奇怪问题,设置了Qt::Tool后,点击弹出对话框的确定取消按钮,程序直接退出
- 我点击保存按钮后,先弹出一个保存成功的对话框
- DataGrid点击删除按钮弹出确认对话框一个好办法
- Android 点击一个按钮,弹出一个对话框
- 注册或者点击按钮时,怎么防止用户重复提交数据(实例讲解)
- 注册或者点击按钮时,防止用户重复提交数据
- DataGrid点击删除按钮弹出确认对话框一个好办法
- C++.QT编程学习笔记——点击一个按钮后出现选择文件对话框
- 在Fragment中点击退出按钮,退出到登录界面后(按返回键退出程序开始的时候,退出到登录界面按返回键无法退出程序,而是返回到上一个Activity,网上说是没有finish掉上一个Activity)
- Android下关于AlertDialog点击 确定或者取消按钮 对话框自动消失的 解决办法
- ProgressDialog 通过点击按钮,弹出一个对话框