Re: [問題] 請問有地區列表嗎

看板Web_Design作者 (YKSG)時間18年前 (2008/03/10 11:21), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
※ 引述《dspswen (阿天)》之銘言: : 做表單想到,譬如台北市有北投區 中山區 士林區 ... : 這些地區的列表有嗎(還有所有縣市的) : 還是要自己去看別人的網站 copy ?? 我這邊有一個寫好的java script = = 就拿去用吧~ http://www.badongo.com/file/8209907 使用方法...... 1. 先 include file 我的寫法: <!--#include file="zipcode.inc" --> (我只會asp~其他語言我不知道怎麼用) 2. 表單的名稱-共三個:PostCode(郵遞區號),City1(城市),County1(地區) 我的寫法: <input name="PostCode" type="text" readonly size="5" id="Text3"> <select name="City1" onChange="changeZone(mainForm.City1, mainForm.County1, mainForm.PostCode, mainForm.Address1, mainForm.Cityindex, mainForm.City, mainForm.County);" id="Select1"> </select> <select name="County1" onChange="showZipCode(mainForm.City1, mainForm.County1, mainForm.PostCode, mainForm.Address1, mainForm.Cityindex, mainForm.City, mainForm.County);" id="Select2"> </select> 3. 由上面程式碼看的出來~還有5個值沒寫出來~分別是: City、County、Address1、Cityindex、Address 其實是我自己為了方便寫入資料庫用的 = =|| 我的寫法: <input type="hidden" name="City" id="City"> <input type="hidden" name="County" id="County"> <input type="hidden" name="Address1" id="Address1"> <input type="hidden" name="Cityindex" id="Cityindex"> <input name="Address" type="text" size="40" maxlength="80" id="Address"> ps1:mainForm 為表單Form的名稱 ps2: changeZone跟showZipCode 就是Java Script裡面的 function ps3: 我連ps2都買不起了~那來的錢買ps3 = =||... 這樣就行了!!~完成基本的二階梯選單 ~^___^~ 希望你用的到 = =||... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.87.129.242

03/10 12:59, , 1F
推推推推 感謝推
03/10 12:59, 1F
文章代碼(AID): #17rAb7gi (Web_Design)
文章代碼(AID): #17rAb7gi (Web_Design)