- 浏览: 220482 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (132)
- 企业开发 (46)
- SSO (5)
- CAS (1)
- SOAP (8)
- Oracle (5)
- Eclipse IDE (3)
- 事业 (14)
- Lucene (4)
- 课间十分钟 (2)
- maven (1)
- CMS (5)
- 设计模式 (0)
- 软件开发流程 (0)
- midas/GTS (1)
- Java Hibernate (1)
- SqlServer2005 (1)
- Jquery (1)
- Java (1)
- Java Maven Pom (1)
- Java Velocity (1)
- Jira 项目管理 (2)
- 软件开发 需求分析 (1)
- 单点登录 (1)
- 项目管理 (1)
- 时间管理 (1)
- UI 交互设计流程 (1)
- SVN (1)
- css w3c (1)
- ASP.NET FrameWork (1)
- Oracle Session Process (1)
- tomcat (1)
- Web (0)
最新评论
-
fendou3754:
程序可以运行,不过对于中文的搜索,貌似要将txt文件存为UTF ...
Lucene开发实例--代码篇 -
ewf_momo:
...
Lucene开发实例--代码篇 -
dbh0512:
我的是一段文本 每次只能创建一个索引 但是搜索不到 求解答
Lucene开发实例--代码篇 -
a496649849:
终于安装了 多谢
m2安装Eclipse3.6.1(eclipse-jee-helios-SR1-win32.zip)问题 -
lyj57:
那个"E:\\renwg\\茶余饭后\\新建文件夹& ...
Lucene开发实例--代码篇
中国天气weather.com
http://m.weather.com.cn/data/101100101.html
其中101100101是城市的代码,获得城市代码进入
http://www.weather.com.cn
在搜索框上输入你要需要获得天气的城市,点击查询,即可在地址栏获得相应城市编号,然后替换
http://m.weather.com.cn/data/101100101.html
如果大家有更好的接口就提供上来,特别是根据IP获取天气预报信息。
是啊,我两年前就是直接访问别人的服务,不过如果用于商业用途要付费的
这位仁兄听谁说的json不能跨域呢?
http://m.weather.com.cn/data/101100101.html
其中101100101是城市的代码,获得城市代码进入
http://www.weather.com.cn
在搜索框上输入你要需要获得天气的城市,点击查询,即可在地址栏获得相应城市编号,然后替换
http://m.weather.com.cn/data/101100101.html
如果大家有更好的接口就提供上来,特别是根据IP获取天气预报信息。
- 中国天气网城市代码.rar (14.6 KB)
- 下载次数: 1678
评论
9 楼
wuzijingaip
2012-09-05
语言怎么设?
8 楼
kulinglei
2010-12-21
glamey 写道
网上有现成的webservices,其实可以借鉴的!
是啊,我两年前就是直接访问别人的服务,不过如果用于商业用途要付费的
7 楼
tllyf
2010-12-21
学习了!! 大家还能补充点就好
6 楼
niuky
2010-12-17
用到google的天气预报api 不过怎么觉得google天气预报不准啊~
5 楼
wezly
2010-12-16
smzd 写道
内容是很好,但是跨域的json怎么使用呢?不会在服务器端做一个转发吧?
这位仁兄听谁说的json不能跨域呢?
4 楼
smzd
2010-12-14
内容是很好,但是跨域的json怎么使用呢?不会在服务器端做一个转发吧?
3 楼
glamey
2010-12-10
网上有现成的webservices,其实可以借鉴的!
1 楼
rwg109
2010-12-07
(1)这是你想要的天气预报代码,由中央气象台提供数据,最准确最权威的天气预报,能够根据访客不同的IP地址显示不同城市的天气预报
下面是源程序代码:
<iframe src="http://www.ttyyy.com/tianqi/tq.html" width="160" height="60" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
(3)名称:新浪天气预报代码
代码:<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","日喀则"
"542421","那曲"
"542523","阿里"
"542621","林芝"
"610101","西安"
"610201","铜川"
"610301","宝鸡"
"610401","咸阳"
"612101","渭南"
"612301","汉中"
"612401","安康"
"612501","商洛"
"612601","延安"
"612701","榆林"
"620101","兰州"
"620401","白银"
"620301","金昌"
"620501","天水"
"622201","张掖"
"622301","武威"
"622421","定西"
"622701","平凉"
"622901","临夏"
"620201","嘉峪关"
"622102","酒泉"
"630100","西宁"
"632121","果洛"
"632221","海西"
"632321","格尔木"
"632521","海东"
"632621","海北"
"632721","玉树"
"632802","黄南"
"640101","银川"
"640201","石嘴山"
"642101","吴忠"
"642221","固原"
"650101","乌鲁木齐"
"650201","克拉玛依"
"652101","吐鲁番"
"652201","哈密"
"652301","昌吉"
"652701","博乐"
"652801","库尔勒"
"652901","阿克苏"
"653001","克州"
"653101","喀什"
"654101","伊犁"
"655001","石河子"
"655002","塔城"
"655003","阿勒泰"
"710001","台北"
"211001","辽阳"
"653201","和田"
"820000","澳门"
"810000","香港"
第一种:
代码: 效果预览:
<iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://minisite.qq.com/Weather/news_new.html" allowTransparency="true"></iframe>
说明:这种适合于在网页的边栏插入.但一个缺点是,上面的4个城市是既定的,无法改成别的.插入时,选好网页上的位置,直接将左栏的源代码全部拷进去就行了
第二种:
代码: 效果预览:
<IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.qq.com/inc/ss258.htm'></IFRAME>
说明:这种 也适合于在网页的边栏插入.上面的城市可以自定,比如厦门可改成别的.定制的方法是修改我代码中标红的数字,从1开始代表"香港"开始,每个数字都代表一个城市,厦门是287,具体要哪个城市自己找一下罢.
第三种:
代码: 效果预览:
<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>
说明:这种适合于在网页的头栏插入.上面的城市可以自定,比如 石家庄可改成别的.定制的方法是修改我代码中标红的数字.具体各个城市对照的id表可在此下载:城市名称及ID对照表(请右键点击->另存为).
第四种:
代码: 效果预览:
<iframe width="469" height="218" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://appnews.qq.com/cgi-bin/news_weather_search? city=厦门" allowTransparency="true"></iframe>
说明:这种适合于在网页的正栏插入.上面的城市可以自定,比如厦门可改成别的.定制的方法是修改我代码中标红的 名称.这里比较简单,直接用汉字改就行了.比如是福州的,明晨去看最亮火星,你就直接把"厦门"改成福州就行.
<> 第五种:
<> 代码: 效果预览:
<> <IFRAME ID='ifm1' WIDTH='405' HEIGHT='332' ALIGN='center' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC="http://weather.qq.com/24.htm"></IFRAME>
相关的主题文章:
阴霾天气--空气污染危害健康
广宁县气象局招聘信息
下面是源程序代码:
<iframe src="http://www.ttyyy.com/tianqi/tq.html" width="160" height="60" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
(3)名称:新浪天气预报代码
代码:<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","日喀则"
"542421","那曲"
"542523","阿里"
"542621","林芝"
"610101","西安"
"610201","铜川"
"610301","宝鸡"
"610401","咸阳"
"612101","渭南"
"612301","汉中"
"612401","安康"
"612501","商洛"
"612601","延安"
"612701","榆林"
"620101","兰州"
"620401","白银"
"620301","金昌"
"620501","天水"
"622201","张掖"
"622301","武威"
"622421","定西"
"622701","平凉"
"622901","临夏"
"620201","嘉峪关"
"622102","酒泉"
"630100","西宁"
"632121","果洛"
"632221","海西"
"632321","格尔木"
"632521","海东"
"632621","海北"
"632721","玉树"
"632802","黄南"
"640101","银川"
"640201","石嘴山"
"642101","吴忠"
"642221","固原"
"650101","乌鲁木齐"
"650201","克拉玛依"
"652101","吐鲁番"
"652201","哈密"
"652301","昌吉"
"652701","博乐"
"652801","库尔勒"
"652901","阿克苏"
"653001","克州"
"653101","喀什"
"654101","伊犁"
"655001","石河子"
"655002","塔城"
"655003","阿勒泰"
"710001","台北"
"211001","辽阳"
"653201","和田"
"820000","澳门"
"810000","香港"
第一种:
代码: 效果预览:
<iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://minisite.qq.com/Weather/news_new.html" allowTransparency="true"></iframe>
说明:这种适合于在网页的边栏插入.但一个缺点是,上面的4个城市是既定的,无法改成别的.插入时,选好网页上的位置,直接将左栏的源代码全部拷进去就行了
第二种:
代码: 效果预览:
<IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.qq.com/inc/ss258.htm'></IFRAME>
说明:这种 也适合于在网页的边栏插入.上面的城市可以自定,比如厦门可改成别的.定制的方法是修改我代码中标红的数字,从1开始代表"香港"开始,每个数字都代表一个城市,厦门是287,具体要哪个城市自己找一下罢.
第三种:
代码: 效果预览:
<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>
说明:这种适合于在网页的头栏插入.上面的城市可以自定,比如 石家庄可改成别的.定制的方法是修改我代码中标红的数字.具体各个城市对照的id表可在此下载:城市名称及ID对照表(请右键点击->另存为).
第四种:
代码: 效果预览:
<iframe width="469" height="218" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://appnews.qq.com/cgi-bin/news_weather_search? city=厦门" allowTransparency="true"></iframe>
说明:这种适合于在网页的正栏插入.上面的城市可以自定,比如厦门可改成别的.定制的方法是修改我代码中标红的 名称.这里比较简单,直接用汉字改就行了.比如是福州的,明晨去看最亮火星,你就直接把"厦门"改成福州就行.
<> 第五种:
<> 代码: 效果预览:
<> <IFRAME ID='ifm1' WIDTH='405' HEIGHT='332' ALIGN='center' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC="http://weather.qq.com/24.htm"></IFRAME>
相关的主题文章:
阴霾天气--空气污染危害健康
广宁县气象局招聘信息
发表评论
文章已被作者锁定,不允许评论。
-
Velocity浅析及与Jsp、Freemarker对比
2011-08-21 18:10 886Velocity 是一个基于java ... -
Google首页电吉他Doodle源代码
2011-06-10 12:22 996为了纪念电吉他之父莱斯·保罗(Les Paul,1915 ... -
Caused by: javax.imageio.IIOException: Can't create cache file!
2011-05-23 20:17 3640验证码 无法显示问题。 错误日志为: Cause ... -
配置Resin 3+iis 支持JSP且共享80端口
2011-05-20 17:21 2332软件环境 操作系统:win2003 SDK:JDK 1.6 服 ... -
大型网站架构不得不考虑的10个问题
2011-05-17 21:28 910这里的大型网站架构 ... -
This class does not support SAAJ 1.1, weblogic?
2011-05-15 19:21 2043项目 将要迁移到 Weblogic 10.3. ... -
javax.xml.ws.soap.SOAPFaultException: This class does not support SAAJ 1.1
2011-05-15 18:24 2012]] Root cause of ServletExcepti ... -
Date 与 Calendar 计算时间及天数
2011-03-09 21:19 1618有时我们会比较时间,例如:7天前,7天后。 虽然 ... -
m2安装Eclipse3.6.1(eclipse-jee-helios-SR1-win32.zip)问题
2011-02-25 15:36 23281. m2eclipse------------------- ... -
Eclipse is running in a JRE, but a JDK is required 解决方法
2011-02-25 11:54 1569装Maven后每次启动出现警告信息: Eclipse is ... -
Apache Tomcat Tomcat5 服务因 0 (0x0) 服务性错误而停止”问题的解决
2011-02-17 20:38 1515今天又找到一个解决方法,应该比较通用。就是删除服务再重新安装。 ... -
随机产生26个英文字母
2010-12-28 16:45 1862char paramChar = (char)(Math ... -
Java字符串反转问题
2010-12-28 14:18 936java反转:可以使用 StringBuffer中的 r ... -
Java解析XML文件的四种方法
2010-12-14 21:15 6841.介绍 1)DOM(JAXP Crimson ... -
java 调用.net DLL的方法
2010-12-14 20:44 984背景: 近日一个java的项目,客户要求项目中必须使用其提 ... -
提供Java性能的十一个用法
2010-12-14 15:44 842Java语言习惯用语 1。循环 ■ 在重要的循环里,消除循 ... -
Java中的DOS下常用命令积累
2010-12-13 18:33 10361:解压jar包: xf org.eclipse.swt.w ... -
优化C盘
2010-12-08 16:44 917主要讲讲Windows操作系 ... -
Win XP使用100%网速的方法
2010-12-08 16:17 1043开始菜单里点击”运行”,输入gpedit. ... -
现实生活即将被虚拟化
2010-12-08 14:20 1140往往好的创 ...
相关推荐
综上所述,实现"js天气预报 js版天气预报接口"项目,需要掌握JavaScript基础、AJAX请求、API接口调用、HTML/CSS页面构建、数据处理及错误处理等技能。通过对这些知识点的理解和实践,你可以构建一个动态的、用户友好...
全国天气预报接口根据城市名/id查询天气,向开发者提供的准确、稳定、丰富的天气数据云服务。
关于“标签”,“天气预报接口”强调了我们讨论的核心是使用接口获取天气信息,“自动获取天气预报”则进一步指出了这个过程的自动化特性,意味着用户无需手动查询,系统可以自动更新并显示最新的天气情况。...
标题中的“获取天气预报API,免费接口,项目下载可运行,Java实现”表明这是一个关于使用Java语言开发的天气预报API项目,它提供了免费的API接口,并且已经打包为可直接运行的形式。这样的项目通常对开发者来说是很...
"天气预报接口"就是这样一个例子,它提供了一个通过Web Service调用来获取天气信息的途径。标题中的"weather接口"和"webservice接口"都指的是这种基于Web Service技术的接口服务。 Web Service接口通常是基于SOAP...
综上所述,"天气预报接口,自动获取"是一项重要的IT技术,它为开发者提供了便捷的方式获取天气信息,促进了各种天气应用的开发和创新。通过理解接口的工作原理、数据格式以及应用开发的注意事项,开发者可以充分利用...
HTML获取天气预报是一...综上所述,HTML获取天气预报涉及HTML基础、API接口调用、数据解析、前端交互等多个技术层面。通过掌握这些知识点,开发者可以创建出一个实用且美观的天气预报模块,为用户提供实时的天气信息。
在本文中,我们将深入探讨如何利用JS获取天气预报信息,这通常涉及到API调用和JSON数据解析。 首先,天气预报信息通常是通过与气象服务提供商的API接口进行交互获取的。API(Application Programming Interface)是...
总的来说,这个项目展示了如何通过SAX解析XML接口数据,以获取天气预报信息。理解这个过程对于任何需要处理XML数据的开发者都非常重要,特别是那些需要处理大量数据或资源有限的移动应用开发者。通过熟练掌握SAX解析...
“获取天气预报信息的Web服务”这一标题明确指出了文章的核心主题——如何通过Web服务接口获取天气预报数据。这通常涉及到一系列的技术细节,包括但不限于网络请求、数据处理、API(Application Programming ...
标题中的“一个REST获取天气预报的客户端小例子”是指通过RESTful API来获取天气预报数据的应用实例,分别使用了C#和jQuery两种不同的技术实现。REST(Representational State Transfer)是一种网络应用程序的设计...
总结来说,"使用XMLHTTP获取天气预报"这个主题涵盖了JavaScript中的Ajax技术,XMLHTTP对象的使用,JSON数据的解析,以及DOM操作等核心知识点。通过这些技术,开发者可以创建出更加交互性强、用户体验优良的网页应用...
本工具使用C#语言开发WinFrom软件,根据国家气象局天气预报接口获取未来十五天天气预报。只用来新手学习,里边主要涉及到Url请求,Json转List,Json转model。
天气预报接口调用示例源码 源码描述: 一个天气预报接口调用示例源码 注意: 一、源码用于新手学习交流,默认天气预报城市为义乌天气预报, 如需更改其它城市请修改17行代码: disp_weather("义乌");把义乌替换成别...
总之,这个"VC获取天气预报示例程序"为初学者提供了一个很好的实践平台,展示了如何利用VC6结合网络技术实现实用的应用程序。通过深入研究和实践,不仅可以掌握VC++的基础编程,还能进一步了解网络通信和数据解析等...
关于"JS获取天气预报"的标签,这通常涉及到使用JavaScript通过网络API(应用程序接口)从weather.cn获取数据。JavaScript可以通过XMLHttpRequest或者现代浏览器的fetch API来发送HTTP请求,从远程服务器获取JSON或者...
调用天气预报webservices通过引用web服务的方式获取到想要的城市天气情况,2400多个城市天气预报Web服务,包含2300个以上中国城市和100个以上国外城市天气预报数据。数据每2.5小时左右自动更新一次,准确可靠
在这个特定的项目中,我们关注的是如何使用Web Service来获取天气预报信息,特别是通过解析WSDL(Web Services Description Language)文件。WSDL是一种XML格式,用于定义服务的位置、接口以及如何调用这些服务。 ...
综上所述,这个压缩包提供了一个使用Delphi编写的应用程序,该程序能够通过XML接口获取天气预报信息。用户可以通过运行`Project1.exe`来使用该功能,而源代码和其他辅助文件则可以帮助开发者了解其工作原理并进行...