看板 Ajax 關於我們 聯絡資訊
※ 引述《st900278 (frieng)》之銘言: : 請問各位,小弟有一個大問題希望大家幫忙解決,我把網 : 頁分成上下兩個frame,下面的frame又分成左右兩個frame,當然問題不是怎麼分啦。 : 我把上面的FRAME叫作A,左邊的FRAME叫做B,右邊的則較C : 我的index畫面 C 部分有許多歡迎的詞 : 我現在B中有許多的超連結,叫a,b,c;分別使C畫面變成apple,banana,cat : 然而對這個網站中的聯結我知道如何做但是,我現在有一個外部的連結想連進來 : 我希望他C出現並不是那些歡迎詞,而是會出現跟按b所出現的畫面一樣。 : 也就是出現banana。 : 請大家幫幫忙。 index的head部分用javascript可以解決﹐如下﹕ <html> <head> <title>frameset test</title> <script> window.onload=function(){ var sUrl=""+document.location.search; sUrl=sUrl.substr(1); if(sUrl) document.getElementsByName("fraMain")[0].src=sUrl; }; </script> </head> <frameset rows="25%,*"> <frame src="top.htm" name="fraTop"> <frameset cols="20%,*"> <frame src="left.htm" name="fraLeft"> <frame src="main.htm" name="fraMain"> </frameset> </frameset> </html> 要讓C出現a.htm﹐網址改為 index.htm?a.htm 就可以 Demo: http://alibuda.org?KQ8WP (index.htm) http://alibuda.org?KQ8WQ (index.htm?a.htm) a.htm可以換成任意url﹐index.htm?http://www.google.com 也可以 -- 隨便看看部落格 http://www.numino.net/blog/index.asp -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.231.106.201
st900278:感謝 04/27 21:25