|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
請教高手!關於frame
<frameset rows="95,*" frameborder="NO" border="0" framespacing="0">
<frame name="top" scrolling="NO" noresize src="1.htm">
<frame name="main" src="2.htm">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">
</body></noframes>
</html>
請教高手,我想將top中的src的鏈接重新指定,要如何作? |
不要用top做框架名,建議改為topFrame
top.topFrame.src= |
那這句「top.topFrame.src=」應加在哪裡?
我加在body中沒有用
<frameset rows="95,*" frameborder="NO" border="0" framespacing="0">
<frame name="top" scrolling="NO" noresize src="1.htm">
<frame name="main" src="2.htm">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">
<script language=javascript>
top.topFrame.src=="top.htm";
</script>
</body></noframes>
</html> |
再次請教Poorfish,top.topFrame.src="top.htm"應加在哪裡?
是在主框架中,還是在topFrame指定的1.htm中? |
真沒人能幫我嗎? |
看來是沒有人幫我了,真失望! |
|