applepie 发表于 2003-12-28 18:34:40

我写了一个php 可以显示天气预报

用msn6.0 里有一个显示天气预报得东西 觉得不错
所以我根据msn得网页源代码 自己做了一个

http://applepieqwer.3322.org/w.php

但是当中得天气信息是msn得 不知道我这样算不算侵权?

applepie 发表于 2003-12-28 18:38:07

不过作为一个上海人   我只做了上海的哈哈

jiangtao9999 发表于 2003-12-30 13:55:08

强烈要求包含全中国的~~~~~

applepie 发表于 2003-12-30 14:30:49

好马上

magicmao 发表于 2004-1-2 09:42:20

都过了一年了,还没有好:P
最好加上列表:)

applepie 发表于 2004-1-2 11:25:36

1月1日 我感冒了一直没写

applepie 发表于 2004-1-2 12:32:58

写好了
http://applepieqwer.3322.org/weather/w.php
界面不是很好看

jiangtao9999 发表于 2004-1-2 12:54:06

好东西~~~~

applepie 发表于 2004-1-2 14:47:15

其实不一定要到我的电脑上来看

http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid= (城市代码)
这个url可以得到一个js脚本的一个类msn6里面的天气预报就是这样作出来的
大家可以把他的代码插到自己的网页里
我只是把java类 变成php类 再显示出来
这是城市代码:

case "CHXX0008": return "北京";
case "CHXX0116": return "上海";
case "CHXX0037": return "广州";
case "CHXX0005": return "安顺";
case "CHXX0308": return "保定";
case "CHXX0370": return "保山";
case "CHXX0013": return "长沙";
case "CHXX0010": return "长春";
case "CHXX0015": return "常州";
case "CHXX0017": return "重庆";
case "CHXX0016": return "成都";
case "CHXX0286": return "赤峰";
case "CHXX0019": return "大连";
case "CHXX0371": return "大里";
case "CHXX0251": return "大同";
case "CHXX0028": return "佛山";
case "CHXX0029": return "抚顺";
case "CHXX0031": return "福州";
case "TWXX0013": return "高雄";
case "CHXX0434": return "桂林";
case "CHXX0039": return "贵阳";
case "CHXX0046": return "哈尔滨";
case "CHXX0502": return "海口";
case "CHXX0044": return "杭州";
case "CHXX0053": return "惠州";
case "CHXX0063": return "吉林";
case "CHXX0064": return "济南";
case "CHXX0068": return "九江";
case "CHXX0072": return "开封";
case "CHXX0076": return "昆明";
case "CHXX0080": return "拉萨";
case "CHXX0079": return "兰州";
case "CHXX0086": return "洛阳";
case "CHXX0479": return "柳州";
case "CHXX0097": return "南昌";
case "CHXX0099": return "南京";
case "CHXX0100": return "南宁";
case "CHXX0101": return "南通";
case "CHXX0351": return "绵阳";
case "CHXX0278": return "牡丹江";
case "CHXX0110": return "青岛";
case "CHXX0114": return "泉州";
case "CHXX0117": return "绍兴";
case "CHXX0493": return "汕头";
case "CHXX0119": return "沈阳";
case "CHXX0120": return "深圳";
case "CHXX0122": return "石家庄";
case "CHXX0129": return "太原";
case "TWXX0021": return "台北";
case "TWXX0019": return "台中";
case "CHXX0133": return "天津";
case "CHXX0462": return "温州";
case "CHXX0135": return "乌鲁木齐";
case "CHXX0141": return "西安";
case "CHXX0236": return "西宁";
case "CHXX0140": return "厦门";
case "CHXX0049": return "香港";
case "CHXX0143": return "咸阳";
case "CHXX0148": return "新乡";
case "TWXX0009": return "新竹";
case "CHXX0437": return "徐州";
case "CHXX0138": return "武汉";
case "CHXX0467": return "武夷山";
case "CHXX0291": return "延吉";
case "CHXX0407": return "宜昌";
case "CHXX0362": return "宜宾";
case "CHXX0203": return "伊宁";
case "CHXX0259": return "银川";
case "CHXX0411": return "岳阳";
case "CHXX0300": return "张家口";
case "CHXX0165": return "郑州";

wsm 发表于 2004-1-4 09:11:28

好东西 有点:那个列表每次都跳回“北京” 不好看
页: [1]
查看完整版本: 我写了一个php 可以显示天气预报