其实不一定要到我的电脑上来看
用
http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid= (城市代码)
这个url 可以得到一个js脚本的一个类 msn6里面的天气预报就是这样作出来的
大家可以把他的代码插到自己的网页里
我只是把java类 变成php类 再显示出来
这是城市代码:
[code:1]
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 "郑州";
[/code:1]