1. 程式人生 > >各種天氣預報介面程式碼

各種天氣預報介面程式碼

新浪天氣預報程式碼
程式碼 :<IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src="http://news.sina.com.cn/iframe/weather/130101.html"></iframe>

說明 :這種適合於在網頁的頭欄插入。上面的城市可以自定,比如 石家莊可改成別的。

城市程式碼:

"110100","北京"
"120100","天津"
"130101","石家莊"
"130201","唐山"

"130301","秦皇島"
"130701","張家口"
"130801","承德"
"131001","廊坊"
"130401","邯鄲"
"130501","邢臺"
"130601","保定"
"130901","滄州"
"133001","衡水"
"140101","太原"
"140201","大同"
"140301","陽泉"
"140501","晉城"
"140601","朔州"
"142201","忻州"
"142331","離石"
"142401","榆次"
"142601","臨汾"
"142701","運城"
"140401","長治"
"150101","呼和浩特"
"150201","包頭"
"150301","烏海"
"152601","集寧"
"152701","巴彥浩特"
"152801","臨河"

"152921","鄂爾多斯"
"150401","赤峰"
"152301","通遼"
"152502","錫林浩特"
"152101","海拉爾"
"152201","烏蘭浩特"
"210101","瀋陽"
"210201","大連"
"210301","鞍山"
"210401","撫順"
"210501","本溪"
"210701","錦州"
"210801","營口"
"210901","阜新"
"211101","盤錦"
"211201","鐵嶺"
"211301","朝陽"
"211401","葫蘆島"
"210601","丹東"
"220101","長春"
"220201","吉林"
"220301","四平"
"220401","遼源"
"220601","松原"
"222301","白城"
"222401","延邊"

"220501","通化"
"230101","哈爾濱"
"230301","雞西"
"230401","鶴崗"
"230501","雙鴨山"
"230701","伊春"
"230801","佳木斯"
"230901","七臺河"
"231001","牡丹江"
"232301","綏化"
"230201","齊齊哈爾"
"230601","大慶"
"232601","黑河"
"232700","大興安嶺"
"310100","上海"
"320101","南京"
"320201","無錫"
"320301","徐州"
"320401","常州"
"320501","蘇州"
"320600","南通"
"320701","連雲港"
"320801","淮陰"
"320901","鹽城"
"321001","揚州"
"321101","鎮江"
"321102","泰州"
"321103","宿遷"
"330101","杭州"
"330201","寧波"
"330301","溫州"
"330401","嘉興"
"330501","湖州"
"330601","紹興"
"330701","金華"
"330801","衢州"
"330901","舟山"
"332501","麗水"
"332602","台州"
"340101","合肥"
"340201","蕪湖"
"340301","蚌埠"
"340401","淮南"
"340501","馬鞍山"
"340601","淮北"
"340701","銅陵"
"340801","安慶"
"341001","黃山市"
"342101","阜陽"
"342201","宿州"
"342301","滁州"
"342401","六安"
"342501","宣城"
"342601","巢湖"
"342901","池州"
"350101","福州"
"350201","廈門"
"350301","莆田"
"350401","三明"
"350501","泉州"
"350601","漳州"
"352101","南平"
"352201","寧德"
"352601","龍巖"
"352602","隴南"
"352603","慶陽"
"360101","南昌"
"360201","景德鎮"
"362101","贛州"
"360301","萍鄉"
"360401","九江"
"360501","新餘"
"360601","鷹潭"
"362201","宜春"
"362301","上饒"
"362401","吉安"
"370101","濟南"
"370201","青島"
"370301","淄博"
"370401","棗莊"
"370501","東營"
"370601","煙臺"
"370701","濰坊"
"370801","濟寧"
"370901","泰安"
"371001","威海"
"371100","日照"
"372301","濱州"
"372401","德州"
"372501","聊城"
"372801","臨沂"
"372901","菏澤"
"372902","萊蕪"
"410101","鄭州"
"410201","開封"
"410301","洛陽"
"410401","平頂山"
"410501","安陽"
"410601","鶴壁"
"410701","新鄉"
"410801","焦作"
"410901","濮陽"
"411001","許昌"
"411101","漯河"
"411201","三門峽"
"412301","商丘"
"412701","周口"
"412801","駐馬店"
"412901","南陽"
"413001","信陽"
"420101","武漢"
"420201","黃石"
"420301","十堰"
"420400","隨州"
"420501","宜昌"
"420601","襄樊"
"420701","鄂州"
"420801","荊門"
"422103","黃岡"
"422201","孝感"
"422301","咸寧"
"422421","荊州"
"422801","恩施"
"430101","長沙"
"430401","衡陽"
"430501","邵陽"
"432801","郴州"
"432901","永州"
"430801","韶山"
"430802","張家界"
"433001","懷化"
"433101","吉首"
"430201","株洲"
"430301","湘潭"
"430601","岳陽"
"430701","常德"
"432301","益陽"
"432501","婁底"
"440101","廣州"
"440301","深圳"
"441501","汕尾"
"441301","惠州"
"441601","河源"
"441801","清遠"
"441901","東莞"
"440401","珠海"
"440701","江門"
"441201","肇慶"
"442001","中山"
"440801","湛江"
"440901","茂名"
"440201","韶關"
"440501","汕頭"
"441401","梅州"
"441701","陽江"
"441702","潮州"
"441703","順德"
"441704","揭陽"
"441705","雲浮"
"450101","南寧"
"450401","梧州"
"452501","玉林"
"450301","桂林"
"452601","百色"
"452701","河池"
"452802","欽州"
"450201","柳州"
"450501","北海"
"450502","防城港"
"450503","貴港"
"450504","賀州"
"460100","海口"
"460200","三亞"
"460300","西沙群島"
"510101","成都"
"513321","眉山"
"513101","雅安"
"513229","峨嵋山"
"510301","自貢"
"500100","重慶"
"500102","萬州"
"500103","涪陵"
"512901","南充"
"510501","瀘州"
"510601","德陽"
"510701","綿陽"
"510901","遂寧"
"511001","內江"
"511101","樂山"
"512501","宜賓"
"510801","廣元"
"513021","達州"
"513401","資陽"
"510401","攀枝花"
"510402","阿壩"
"510403","甘孜"
"510404","涼山"
"510405","廣安"
"510406","巴中"
"500239","黔江"
"520101","貴陽"
"520200","六盤水"
"522201","銅仁"
"522501","安順"
"522601","凱里"
"522701","都勻"
"522301","興義"
"522421","畢節"
"522101","遵義"
"530101","昆明"
"530201","德巨集"
"532201","曲靖"
"532301","楚雄"
"532401","玉溪"
"532501","紅河"
"532621","文山"
"532721","思茅"
"532101","昭通"
"532821","西雙版納"
"532901","大理"
"533001","保山"
"533121","怒江"
"533221","麗江"
"533321","迪慶"
"533521","臨滄"
"540101","拉薩"
"542121","昌都"
"542221","山南"
"542301","日喀則"