看板 Web_Design 關於我們 聯絡資訊
※ 引述《propc (propc)》之銘言: : 是這樣的 我有一個index.html : 裡面有一些連結按下去之後會連到main.html : 其中main 會預設開啟 mainR (mainR.htm) & main L(mainL.htm) 兩個frame : 請問我有辦法在首頁按下link之後, : 就顯示出mainL跟一個其他的網頁在mainR嗎? : 就是顯示出main.htm之後自動在開xx.html在mainR的框架... : 不好意思很久沒做網頁了 只會html..XD : 不知道現在已經演進到了css了orz 在frame mainR中放一個重定向頁面 src="redir.htm" redir.htm內容如下: <html> <head> <script> var s=parent.document.location.search; if(s!="") s=s.substr(1); if(s!="") document.location.href=s; else document.location.href="MainR.htm"; </script> </head> </html> 然後index.html中的link要在後面加上url,同一文件夾下的可以只寫文件,如下所示: <a href="main.html?xxx.htm">link1</a> <a href="main.html?http://numino.net">link2</a> <a href="main.html?http://xxx.xx/xx/xx.xx">link3</a> -- 那永恆的,終將毀滅 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 117.86.5.34
propc:謝謝你 我試試看^^ 03/13 05:55
propc:可以了 非常謝謝你的熱心指教^^ 03/13 07:37