父级frame中的方法:
function hideOutline() { $("#outline").hide(); $("#content").attr("style", "width: 97%;"); $(".replyUserList").find("table").attr("style", "left: 35px;"); $("#showOutline").show(); }
子frame中的调用方式:
parent.window.hideOutline();
说明:
调用时window可以省略,比如parent.hideOutline();也可以,而且parent可以有多级,用于有多级frame的情况,比如:parent.parent.hideOutline();