看板 Web_Design 關於我們 聯絡資訊
※ 引述《richmind (李小喵)》之銘言: : 請教各位高手,小弟我做了一個網頁,分成左右兩隔, : 左邊想做一個超連結到右邊去,但又想要點那個連結之 : 後,可以彈出另外一個我做的網站,不知道要怎樣加程 : 式碼,煩請各位大大指點... : P.S.我是用dreamweaver做的... 我的方法: 假設你做的網頁叫 main.htm, 分隔的左邊是 left.htm, 分隔的右邊是right.htm main.htm的程式碼: <html> <frameset cols="136,*"> <frame name="left" src="left.htm"> <frame name="right" src="right.htm"> <noframes> <body> <p>此網頁使用框架,但是您的瀏覽器並不支援.</p> </body> </noframes> </frameset> </html> ============================== left.htm的程式碼: <html> <head> <script language="javascript"> function gotoURL() { window.open("http://tw.yahoo.com"); } </script> </head> <body> <a href="http://www.cht.com.tw" target="right" onclick="javascript:gotoURL();">H iNet</a> </body> </html> ============================== right.htm的程式碼 <html> <body> This is right HTML. </body> </html> 我的方法是利用Javascript... 這只是個簡單的範例, 你自己修改看看 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.229.61.172