var json= 中国天气网-专业天气预报、气象服务门户

页面飘走了

5秒后,跳转手机中国天气网首页

;var img_1=json.weatherinfo.img1;var img_path='http://m.weather.com.cn/img/c'+img_1+'.gif' ;switch(img_1){case'0':case'1':img_path='http://m.xmhouse.com/images/weather/'+img_1+'.png';break;case '2':img_path='http://m.xmhouse.com/images/weather/2.png';break;case '3':img_path='http://m.xmhouse.com/images/weather/3.png';break;case'7':img_path='http://m.xmhouse.com/images/weather/7.png';break;}document.getElementById('weather_icon').innerHTML='';var d=json.weatherinfo.temp1; tt=d.split('~');var t1= tt[0].replace('℃',''); var t2=tt[1].replace('℃',''); var c; if(t1>t2){c=t2+'/'+t1+'℃'; }else{c=t1+'/'+t2+'℃';} document.getElementById('weather_info').innerHTML=c; document.getElementById('weather_city').innerHTML=json.weatherinfo.city;