Re: [問題] 下拉式選單

看板Web_Design作者 (eclipse)時間17年前 (2008/11/28 13:40), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/9 (看更多)
※ 引述《britvic (fly high)》之銘言: : → tomin:像這個 http://translate.google.com/translate_t# : tomin大提供的google連結上面的選單 文字和網頁, 翻譯後的搜尋結果.. : 這樣的選單要怎麼做? : 謝謝解答!! 我原本以為你說的,是這種下拉選單: http://lyricapi.googlepages.com/location.html 上面Location只是裝飾用,下面Popular Websites是你要的效果。 如果是這種的話,很簡單。 只要把下面這段程式碼,貼過去HTML裡面, 稍微換行,調整選單內容就完成了。 Go To Popular Websites: <select name="select" onchange="window.location=this.value"> <option value="#" selected> Choose One Popular Website!&nbsp;&nbsp;^__^</option> <option value="Google" rel="nofollow">http://www.google.com">Google</option> <option value="Yahoo!" rel="nofollow">http://tw.yahoo.com">Yahoo!</option> <option value="Youtube" rel="nofollow">http://tw.youtube.com">Youtube</option> <option value="" rel="nofollow">http://wretch.cc">無名小站</option> <option value="MSN" rel="nofollow">http://msn.com.tw">MSN</option> <option value="PCHome" rel="nofollow">http://pchome.com.tw">PCHome</option> <option value="Wikipedia" rel="nofollow">http://wikipedia.org">Wikipedia</option> </select> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.168.40.91 ※ 編輯: tomin 來自: 118.168.40.91 (11/28 13:41)
文章代碼(AID): #19BuHQgB (Web_Design)
討論串 (同標題文章)
文章代碼(AID): #19BuHQgB (Web_Design)