<!--a的代码-->
<body style="margin:0;overflow-y:hidden">
<div id="div1" align="center" style="width:100%; height:100%; position:absolute;background-color: #999999; filter:alpha(opacity=50); top:expression(document.body.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop-document.body.clientHeight+this.style.pixelHeight);">
<table border="1" width="100%">
<tr><td height="50" align="center">标题</td></tr>
<tr><td align="center">
<iframe width="80%" align="center" src="Untitled-2.html"></iframe>
</td>
</tr>
</table>
</div>
<iframe id="myiframe" width="100%" height="100%" align="center" src="Untitled-1.html" frameBorder=0 noResize></iframe>
<!--Untitled-1.html的代码-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body style="width:98%;margin:0;">
<!--expression(document.body.clientHeight)-->
<input type=text id="txt1" value="ddd" /><br>
<input type=text value="ddd" /><br>
<input type=text value="ddd" />
<table height="1000px" border=1 width="95%" align="right">
<tr><td><a href="#" οnclick="javascript:top.document.all.div1.style.display='block';">fffffff</a></td></tr>
</table>
</body>
</html>
<!--Untitled-2.html的代码-->
<script language="javascript">
function tst()
{
top.document.all.div1.style.display='none';
alert(top.document.all.myiframe.contentWindow.document.all.txt1.value);
}
</script>
<a href="#" onClick="javascript:tst();">sdfsdf</a>display:none;