日期:2014-05-18  浏览次数:20524 次

有关框架页面的显示问题??

        我做了个框架页面index.html,其中包括:
      1、上框架页面     TOP.ASPX
      2、左框架页面     LEFT.ASPX
      3、主要显示页面     index.aspx

      现在的问题是点击   上、左   框架的链接   都是在本框架内跳转的   ,如果我要在上、左框架内点击链接   页面在主要显示页面中跳转应该怎么做??
     
      我现在把我框架的HTML代码贴出来     请会的人帮我解决下     谢谢拉:
   
      <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN ">
<html>
<head>
<title> </title>
<meta   name= "GENERATOR "   content= "Microsoft   Visual   Studio   .NET   7.1 ">
<meta   name= "ProgId "   content= "VisualStudio.HTML ">
<meta   name= "Originator "   content= "Microsoft   Visual   Studio   .NET   7.1 ">
</head>
<frameset   rows= "113,* "   cols= "* "   frameborder= "NO "   border= "0 "   framespacing= "0 ">
<frame   src= "top.aspx "   name= "topFrame "   scrolling= "no "   noresize>
<frameset   cols= "150,85% "   frameborder= "NO "   border= "0 "   framespacing= "0 ">
<frame   src= "left_manger.aspx "   name= "leftFrame "   scrolling= "no "   noresize>
<frame   src= "index.aspx "   name= "mainFrame ">
</frameset>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>


------解决方案--------------------
很简单!

<a href= "index.aspx " target= "mainFrame "> 点这里 </a>
------解决方案--------------------
up
------解决方案--------------------
window.parent.frames[2].location.href= " ";
------解决方案--------------------
top.document.getElementById( '主显示框架ID ').location.href= '地址 '
------解决方案--------------------
mark

------解决方案--------------------
mark
------解决方案--------------------
<a href= "index.aspx " target= "mainFrame "> 点这里 </a>
sf的答案就可以了,简单易用