<script>
function unlocked()
{
//oDiv=document.getElementById("bgDiv");
//document.body.removeChild(oDiv);//删除
oDiv=document.getElementById("locked");
oDiv.style.display='none';
}
function locked()
{
oDiv=document.getElementById("locked");
oDiv.style.display='block';
/*
var sWidth,sHeight;
sWidth=screen.width;
sHeight=screen.height;
mleft=0;
bgObj=parent.document.createElement("div");
bgObj.setAttribute('id','bgDiv');
bgObj.setAttribute("align","center");
bgObj.style.position="absolute";
bgObj.style.top="0";
bgObj.style.background="#cccccc";
bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
bgObj.style.opacity="0.8";
bgObj.style.left=mleft+"px";
bgObj.style.width=1003 + "px";
bgObj.style.height=570 + "px";
bgObj.style.zIndex = "1000";
parent.document.body.appendChild(bgObj);
bgDiv.attachEvent('onclick',unlocked);
*/
}
</script>
<table width="200" border="1">
<tr>
<td><span
onclick="locked()">锁定</span></td>
</tr>
</table>
<div id='locked'
onclick='unlocked()' style='position:absolute;width:1000px;height:580px;left:0;top:0;z-index:50;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=30,finishOpacity=75);background:#000; display:none;' ></div>