Toggle main menu visibility
新聞
下載
教材
影音
討論
其他選單
好站連結
行事曆
電子相簿
常見問題
萬用表單
即時留言簿
友站消息
社大學員
:::
登入
登入
帳號
密碼
登入
重整畫面
:::
所有書籍
「[991]PHP網站開發 進階應用技巧2」目錄
MarkDown
3-3 menu1.php(索引與值都相同的精簡寫法)
1. 網頁多媒體
2. Superfish下拉選單
2-1 index.php(遞迴範例)
3. 連動選單
3-1 menu1.php
3-2 menu2.php
3-3 menu1.php(索引與值都相同的精簡寫法)
3-4 demo/index.php
4. 表格內容排序
4-1 index.php
5. 拉動表格進行排序
5-1 index.php
5-2 checkbox.html
6. 即時聊天系統
6-1 index.php
7. PHP檔案操作(上)
7-1 index.php
7-2 iconize_l.css
8. PHP檔案操作(下)
8-1 index.php
8-2 index.php 中文目錄修正
9. 相片EXIF資訊及上傳
9-1 index.php
10. 目錄管理及相片特效
10-1 index.php
10-2 exif.php
11. 多媒體RSS
11-1 index.php
11-2 mrss.php
12. 樹狀目錄+HTML5
12-1 index.php
12-2 dtree.js
13. DHX入門(上)
13-1 index.php
13-2 index2.php
13-3 index3.php
13-4 index4.php
14. DHX編輯器及選單
14-1 index.php
14-2 input.php
14-3 setup.php
14-4 list.php
14-5 view.php
14-6 menu.xml
15. 點擊編輯
15-1 index.php
15-2 save.php
16. curl網頁採集
16-1 index.php
16-2 test1.php
17. 讀取RSS
17-1 index.php
18. 無刷新登入
18-1 index.php
18-2 login.php
18-3 index.php(AJAX版)
18-4 login.php(AJAX版)
4. 表格內容排序
\[991\]PHP網站開發 進階應用技巧2 ====================== <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel='stylesheet' type='text/css' media='screen' href='style.css' /> <title>連動選單</title> <script language="JavaScript" type="text/javascript" src="jquerychained/jquery.js"></script> <script language="JavaScript" type="text/javascript" src="jquerychained/jquery.chainedSelects2.js"></script> <script language="JavaScript" type="text/javascript"> $(function(){ $('#car').chainSelect('#style','jquerychained/combobox2.php',{ before:function (target){ $('#loading').css('display','block'); $(target).css("display","none"); }, after:function (target){ $('#loading').css('display','none'); $(target).css("display","inline"); }, defaultValue: '<?php echo $\_POST\['style'\];?>' }).change(); $('#style').chainSelect('#color','jquerychained/combobox2.php', { before:function (target){ $('#loading').css('display','block'); $(target).css("display","none"); }, after:function (target){ $('#loading').css('display','none'); $(target).css("display","inline"); }, defaultValue: '<?php echo $\_POST\['color'\];?>' }).change(); $('#color').chainSelect('#cc','jquerychained/combobox2.php', { before:function (target){ $('#loading').css('display','block'); $(target).css("display","none"); }, after:function (target){ $('#loading').css('display','none'); $(target).css("display","inline"); }, defaultValue: '2000cc' }).change(); }); </script> <style> #loading { position:absolute; top:0px; right:0px; background:#ff0000; color:#fff; font-size:14px; font-familly:Arial; padding:2px; display:none; } </style> </head> <body> <div id="loading">載入中 ...</div> <h3>連動選單範例</h3> <?php $select1=($\_POST\['car'\]=="福特")?"selected":""; $select2=($\_POST\['car'\]=="日產")?"selected":""; $select3=($\_POST\['car'\]=="豐田")?"selected":""; ?> <form name="formname" method="post" action="index.php"> <select id="car" name="car"> <option value="">請選擇廠牌</option> <option value="福特" <?php echo $select1;?>>福特</option> <option value="日產" <?php echo $select2;?>>日產</option> <option value="豐田" <?php echo $select3;?>>豐田</option> </select> <select name="style" id="style" style="display:none"></select> <select name="color" id="color" style="display:none"></select> <select name="cc" id="cc" style="display:none"></select> <input type="submit" value="送出"> </form> <?php echo "<div>廠牌:{$\_POST\['car'\]}</div>"; echo "<div>車型:{$\_POST\['style'\]}</div>"; echo "<div>顏色:{$\_POST\['color'\]}</div>"; echo "<div>CC數:{$\_POST\['cc'\]}</div>"; ?>
:::
搜尋
search
進階搜尋
QR Code 區塊
快速登入
所有討論區
「PHP全端開發」線上課程討論區
XOOPS使用討論區
一般研習學員
社大學員專用
路過哈啦區
XOOPS佈景設計
XOOPS模組開發
Tad書籍區
即時留言簿
書籍目錄
展開
|
闔起
線上使用者
64
人線上 (
15
人在瀏覽
線上書籍
)
會員: 0
訪客: 64
更多…