先来看看frames.htm页面的源代码:
<html>
<head>
<title>网页跨框架菜单 from MSDN</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head> 
<frameset rows="92,*" cols="*" framespacing="4" frameborder="yes" border="4">
  <frame src="top.htm" name="topFrame" scrolling="NO" >
  <frame src="bottom.htm" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>

     再来看看top.htm页面的源代码: 

<html>
<head>
<title>MSDN的示例</title>
<script>
var oPopup = window.createPopup();
function richContext()
{
    var lefter2 = event.offsetY+0;
    var topper2 = event.offsetX+15;
    oPopup.document.body.innerHTML = oContext2.innerHTML; 
    oPopup.show(topper2, lefter2, 210, 84, contextobox);
}
</script>
</head>
<body>

<span > 
    &#169;2001 Microsoft Corporation</DIV>
</DIV>
</body>
</html>

相关文章:

  • 2021-12-12
  • 2021-04-02
  • 2021-05-16
  • 2021-06-16
  • 2021-06-21
  • 2021-06-06
  • 2021-11-12
猜你喜欢
  • 2021-06-15
  • 2021-07-29
  • 2022-12-23
  • 2021-06-06
  • 2021-10-16
  • 2022-12-23
相关资源
相似解决方案