转载自:IT摆渡网 -- 一个IT实时在线问答平台,解决任何IT技术难题,无需等待,立马解决!--www.itbaiduwang.com
<frameset rows="145,*,26" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="templates/top.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" /><frameset cols="230,*" frameborder="no" border="0" framespacing="0">
<frame src="templates/left.php" name="leftFrame" noresize="noresize" id="leftFrame" />
<frame src="templates/sGame_sm.php?g=k3" name="mainFrame" id="mainFrame" />
</frameset>
<frame scrolling="no" noresize="" target="content" frameborder="no" src="templates/ac.php" name="DownFrame"></frame>
</frameset>
一:js控制
parent.frames["mainFrame"].location="sGame_pk.php?g=g1";
二:jquery控制
$(parent.frames["leftFrame"].document).find("body").removeClass();
$(parent.frames["leftFrame"].document).find("body").addClass("skin_" + a);
三:技巧
parent.frames["leftFrame"].location.href='../user/left.php';//這個不會彈出刷新提示!
parent.frames["leftFrame"].location.reload();//這個會彈出刷新提示!