全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2766
推到 Plurk!
推到 Facebook!

我要建立一個有彈出式或下拉式功能選單之網頁,該用什麼設計工具?

答題得分者是:pedro
ry_lee
高階會員


發表:368
回覆:251
積分:123
註冊:2002-03-19

發送簡訊給我
#1 引用回覆 回覆 發表時間:2008-08-11 02:08:11 IP:218.164.xxx.xxx 訂閱
我要建立一個有彈出式或下拉式功能選單之網頁,該用什麼設計工具比較容易完成?
因為frontpage似乎無這項功能,
dreamweaver cs3中文版可以嗎?
自行手寫程式碼會不會很難?有無程式碼範例可供參考 ?
pedro
尊榮會員


發表:152
回覆:1187
積分:892
註冊:2002-06-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2008-08-11 07:55:50 IP:59.112.xxx.xxx 未訂閱
用css去定義li下拉行為

下面這段是由
http://forums.delphi-php.net/showthread.php?t=1132
抽離出來,可在IE7運行

在這裡可線上看效果http://demos.delphi-php.net/websitedemo/
請全形轉為半形

"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>無標題文件</title>
<!--
width:750px;
padding-bottom:0px;/*200px;*/
/* remove all the bullets, borders and padding from the default list styling */
padding:0;
list-style-type:none;
.menu ul ul {
.menu li {
width:150px;
.menu a, .menu a:visited {
font-size:12px;
color:#fff;
height:30px;
border-width:0 1px 1px 0;
padding-left:10px;
* html .menu a, * html .menu a:visited {
w¥idth:139px;
/* style the second level background */
background:#949e7c;
/* style the second level hover */
background:#c9ba65;
.menu ul ul :hover > a.drop {
.menu ul ul ul a, .menu ul ul ul a:visited {
.menu ul ul ul a:hover {
background:#b2ab9b;
/* hide the sub levels and give them a positon absolute so that they take up no room */
visibility:hidden;
height:0;
left:0;
* html .menu ul ul {
t¥op:31px;
/* position the third level flyout menu */
left:150px;
width:150px;
/* position the third level flyout menu for a left flyout */
left:-150px;
/* style the table so that it takes no part in the layout - required for IE to work */
/* style the second level links */
background:#d4d8bd;
height:auto;
padding:5px 10px;
/* yet another hack for IE5.5 */
* html .menu ul ul a{
w¥idth:129px;
/* style the top level hover */
color:#fff;
color:#fff;
.menu ul li:hover ul,
visibility:visible;
/* keep the third level hidden when you hover on first level list OR link */
visibility:hidden;
/* keep the fourth level hidden when you hover on second level list OR link */
visibility:hidden;
/* make the third level visible when you hover over second level list OR link */
visibility:visible;
/* make the fourth level visible when you hover over third level list OR link */
visibility:visible;
-->
</head>
<div id="main_div"><table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr><td id="td_trail">PAGE 1</td></tr>
</a>
<li><a href="home.php">PAGES
<ul>
<li><a href="page2.php" title="">PAGE 2</a></li>
</li><li><a href="home.php">MORE ...
<ul><li><a href="contact.php" title="">CONTACT</a></li>
<li><a href="http://forums.delphi-php.net">DELPHI-PHP</a></li></ul>
</div></td></tr></table>
</td></tr></table>
</html>
編輯記錄
pedro 重新編輯於 2008-08-11 07:58:46, 註解 無‧
ry_lee
高階會員


發表:368
回覆:251
積分:123
註冊:2002-03-19

發送簡訊給我
#3 引用回覆 回覆 發表時間:2008-08-11 17:46:34 IP:125.224.xxx.xxx 訂閱
pedro 你好:
謝謝你的答覆,但我看不太懂,我再問一問題,用記事本程式手工寫下拉式功能選單之網頁,容易嗎?有無範例可供參考?


===================引 用 pedro 文 章===================
用css去定義li下拉行為

下面這段是由
http://forums.delphi-php.net/showthread.php?t=1132
抽離出來,可在IE7運行

在這裡可線上看效果http://demos.delphi-php.net/websitedemo/
請全形轉為半形

"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>無標題文件</title>
<!--
width:750px;
padding-bottom:0px;/*200px;*/
/* remove all the bullets, borders and padding from the default list styling */
padding:0;
list-style-type:none;
.menu ul ul {
.menu li {
width:150px;
.menu a, .menu a:visited {
font-size:12px;
color:#fff;
height:30px;
border-width:0 1px 1px 0;
padding-left:10px;
* html .menu a, * html .menu a:visited {
w¥idth:139px;
/* style the second level background */
background:#949e7c;
/* style the second level hover */
background:#c9ba65;
.menu ul ul :hover > a.drop {
.menu ul ul ul a, .menu ul ul ul a:visited {
.menu ul ul ul a:hover {
background:#b2ab9b;
/* hide the sub levels and give them a positon absolute so that they take up no room */
visibility:hidden;
height:0;
left:0;
* html .menu ul ul {
t¥op:31px;
/* position the third level flyout menu */
left:150px;
width:150px;
/* position the third level flyout menu for a left flyout */
left:-150px;
/* style the table so that it takes no part in the layout - required for IE to work */
/* style the second level links */
background:#d4d8bd;
height:auto;
padding:5px 10px;
/* yet another hack for IE5.5 */
* html .menu ul ul a{
w¥idth:129px;
/* style the top level hover */
color:#fff;
color:#fff;
.menu ul li:hover ul,
visibility:visible;
/* keep the third level hidden when you hover on first level list OR link */
visibility:hidden;
/* keep the fourth level hidden when you hover on second level list OR link */
visibility:hidden;
/* make the third level visible when you hover over second level list OR link */
visibility:visible;
/* make the fourth level visible when you hover over third level list OR link */
visibility:visible;
-->
</head>
<div id="main_div"><table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr><td id="td_trail">PAGE 1</td></tr>
</a>
<li><a href="home.php">PAGES
<ul>
<li><a href="page2.php" title="">PAGE 2</a></li>
</li><li><a href="home.php">MORE ...
<ul><li><a href="contact.php" title="">CONTACT</a></li>
<li><a href="http://forums.delphi-php.net">DELPHI-PHP</a></li></ul>
</div></td></tr></table>
</td></tr></table>
</html>
pedro
尊榮會員


發表:152
回覆:1187
積分:892
註冊:2002-06-12

發送簡訊給我
#4 引用回覆 回覆 發表時間:2008-08-11 18:06:19 IP:60.248.xxx.xxx 未訂閱
其實我也只略懂一二,
一般在b/s架構,client端可用的下拉選單,一種是上面貼的html,採css去達到效果,(即上面貼的,直接轉成半形,貼在記筆本上,存成1.html,用ie7去看,即可看到效果)
另一種是用javascript,藉由操縱DOM(在CLIENT端瀏覽器內,看到的的都是一種物件階層),這點小弟還在研究

===================引 用 ry_lee 文 章===================
pedro 你好:
謝謝你的答覆,但我看不太懂,我再問一問題,用記事本程式手工寫下拉式功能選單之網頁,容易嗎?有無範例可供參考?


===================引 用 pedro 文 章===================
用css去定義li下拉行為

Coffee
版主


發表:31
回覆:878
積分:561
註冊:2006-11-15

發送簡訊給我
#5 引用回覆 回覆 發表時間:2008-08-11 18:08:53 IP:220.130.xxx.xxx 訂閱
我實在是搞不清楚都已經問了這麼多問題了,是搞不清楚問題還是搞不清楚版面?

===================引 用 ry_lee 文 章===================
我要建立一個有彈出式或下拉式功能選單之網頁,該用什麼設計工具比較容易完成?
因為frontpage似乎無這項功能,
dreamweaver cs3中文版可以嗎?
自行手寫程式碼會不會很難?有無程式碼範例可供參考 ?
------
不論是否我發的文,在能力範圍皆很樂意為大家回答問題。
為了補我的能力不足之處,以及讓答案可以被重複的使用,希望大家能儘量以公開的方式問問題。
在引述到我的文時自然會儘量替各位想辦法,謝謝大家!
系統時間:2024-04-26 21:20:02
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!