求帮忙 frame页面跳转

求问各位大神:我的页面是有四个frame
分别为frame-head;frame-main;frame-tab;frame-tree;现在是想在frame-head中点击按钮做一个弹窗显示信息,但是在head中的弹出框只在head里面显示,我想让其弹出框在frame-main中显示,应该使用什么方法呢,target=“frame-main”也是不好使,求教求救啊

http://www.zhcexo.com/how-to-put-div-over-frame/

http://blog.csdn.net/clare504/article/details/9347363

你的弹出是弹出层模拟的吧?再frame-main中放置层,点击head里面面的按钮的时候调用frame-main中的弹出层方法弹出层即可。

frame-main放置层

 <div id='dvPop' style="position:absolute;width:200px;height:200px;left:50%;top:50%;background:#eee;margin-top:-100px;margin-left:-100px;display:none">
弹出层
</div>
<script>
function showLayer(display){
  document.getElementById('dvPop').style.display=display;
}
</script>

head里面调用frame-main的的showLayer方法传递状态即可

 <input type="button" onclick="parent.frames['main'].showLayer('block')" value="显示main-frame中的层"/>