新浪天气实况源码_实况天气预报下载

hacker|
179

文章目录:

怎么编visual basic 天气实况

这个天气网站一天是限制某个IP多少次调用的,多的话,会封的,所有也没有什么用户,还不如直接读取百度天气,新浪,网易等网站天气。用正则表达式取出来

怎样在Blog里面放上每天的天气预报呢?

在添加天气预报之前,你得先添加(自定义面板),然后输入标题,勾选(显示源代码),在空白面板里粘贴如下代码,另外需要注意的是,代码显示可能不是你想要的城市,那么你就需要修改为你的城市的代码。

几段超酷实用的天气预报代码,整理如下:

第一种:

iframe src= width="160" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"/iframe

效果: IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC=''/IFRAME

效果: 使用方法:以上显示的是九江的天气预报,你可以改成你自己的,打开页面:,在右边的框中

选择你所在的城市(比如选择南京),然后打开了这个页面:,然后将网址中的244替换''中的258,那么最后显示出来的就是南京的天气预报。

第三种:

IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src=""/ifreame

效果:

第四种:

iframe width="469" height="218" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src=贵阳 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=""/IFRAME

效果:

第六种:

iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="" allowTransparency="true"/iframe

效果:

第七种:

以前很流行的一段代码(在Google上搜到的90%都是这一段),现在已经不能用了,特此写出来,以免大家浪费精力:

iframe width="150" height="240" frameborder="0" scrolling="No" src=''/iframe

其中的“xxx”是每个城市的代码:比如武汉的就是%CE%E4%BA%BA

下面是其他的一些城市的编码:

上海-%C9%CF%BA%A3

北京-%B1%B1%BE%A9

青岛-%C7%E0%B5%BA

济南-%BC%C3%C4%CF

武汉-%CE%E4%BA%BA

福州-%B8%A3%D6%DD

以下得到其他城市的代码的方法:

baidu搜索一下城市的名称,比如"重庆",然后地址栏中的那个代码就是了这些中文字符如何编码变成%D6%D8%C7%EC这种的。比如得到的网址是:

后面的%D6%D8%C7%EC即是。

现在我给大家推荐一个专门提供天气预报和免费天气预报代码服务的网站:

天气123:中国城市天气预报()

只要复制粘贴该网站提供的代码就可以了。

如下是3款(南京)效果图:

第八种:

iframe src="" width=160 height=248 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url/iframe

第九种:

iframe src=";c1=whitec2=FEFCE0t1=redbg=whitew=160text=no" width=160 height=248 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url/iframe

第十种:

iframe src=";c1=FF9900bg=F4FFF4w=160h=20text=yes" width=160 height=21 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url/iframe

该天气代码高级使用方法:

如果您会HTML语言,您还可以在iframe代码中的url后面加参数,如:

chengshi_321.html?c0=F9DC68c1=whitec2=FEFCE0t1=redbg=whitew=160h=250text=no

其中 c0 表示表格第一行背景颜色,c1,c2表示表格其他行间隔的背景颜色,t1表示标题颜色,bg 表示页面北京颜色,w表示表格宽度 h 表示表格高度

当 text=yes 时,将会出现滚动的天气文字,建议您自己调试看看,如:

chengshi_321.html??c0=redc1=FF9900bg=F4FFF4w=160h=20text=yes

注意:颜色请不要加 # 符号,如 #FF9900 请写成 FF9900

````我的BLOG教程里面的东西 如果看着很烦琐 欢迎去我的BLOG 仔细研究

sina 天气预报代码

名称:新浪天气预报代码

代码 :IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src=""/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的src=

不好意思弄错了!

是这个!

3条大神的评论

  • avatar
    访客 2022-07-17 下午 05:28:21

    721","玉树""632802","黄南""640101","银川""640201","石嘴山""642101","吴忠""642221","固原""650101","乌鲁木齐""650201","克拉玛依""652101","

  • avatar
    访客 2022-07-17 下午 10:24:08

    622901","临夏""620201","嘉峪关""622102","酒泉""630100","西宁""632121","果洛""632221","海西""632321","格尔木""632521","海东""632621","海北""632721","玉树""632802","黄南""6

  • avatar
    访客 2022-07-17 下午 05:08:53

    新浪,网易等网站天气。用正则表达式取出来怎样在Blog里面放上每天的天气预报呢?在添加天气预报之前,你得先添加(自定义面板),然后输入标题,勾选(显示源代码),在空白面板里粘贴如下代码,另外需要注意的是,代码显示可能不是你想要的城市,那么你就需要修改为你的城市的代码。 几段超酷实用的

发表评论