1.html
<frameset rows="150,65" COLS="*" scrolling="no" noresize>
<FRAME SRC="a.html" NAME="aa" scrolling="no" frameborder=0>
<FRAME SRC="b.html" NAME="bb" scrolling="no" frameborder=0>
</frameset>
b.html
<frameset rows="150,65" COLS="*" scrolling="no" noresize>
<FRAME SRC="c.html" NAME="cc" scrolling="no" frameborder=0>
<FRAME SRC="d.html" NAME="dd" scrolling="no" frameborder=0>
</frameset>
d.html是变化的如:e.html、f.html、j.html
我知道d.html或者e.html 并访问d.html或者e.html页面,我在访问http://localhost/nn/d.html 或者e.html时怎么获得1.html和 b.html的框架,并显示内容有d.html或者e.html。
如果还有一层frameset是不是不能解决了呢?
<frameset rows="150,65" COLS="*" scrolling="no" noresize>
<FRAME SRC="a.html" NAME="aa" scrolling="no" frameborder=0>
<FRAME SRC="b.html" NAME="bb" scrolling="no" frameborder=0>
</frameset>
b.html
<frameset rows="150,65" COLS="*" scrolling="no" noresize>
<FRAME SRC="c.html" NAME="cc" scrolling="no" frameborder=0>
<FRAME SRC="d.html" NAME="dd" scrolling="no" frameborder=0>
</frameset>
d.html是变化的如:e.html、f.html、j.html
我知道d.html或者e.html 并访问d.html或者e.html页面,我在访问http://localhost/nn/d.html 或者e.html时怎么获得1.html和 b.html的框架,并显示内容有d.html或者e.html。
如果还有一层frameset是不是不能解决了呢?
他们的关系 你在d.html 访问b.html 只要访问的前面加个parent 就行了
比如parent.dd 就是<FRAME SRC="d.html" NAME="dd" scrolling="no" frameborder=0>
这个对象
依次你也可以访问b.html的父页面加两个parent
然后b.html 包含了c.html d.html
你现在的位置是d.html 你想访问a.html
就在你在你访问的对象前面加 parent.parent.
看看谁解决多层的呢?