Traditional Culture Encyclopedia - Weather forecast - Fast weather forecast
Fast weather forecast
/*
/*
/* indicated by yellow.
/* yellowboydesign@gmail.com
/*
/*
*/
///////////////////////
stop();
system . use code page = true;
fpv _ cn = new LoadVars();
fpv _ cn . load("/forecast/cf . PHP ");
fpv _ cn _ weather = new Array();
temp city = new Array();
tempw = new Array();
temp hot = new Array();
tempwind = new Array();
tempwinds = new Array();
fpv_cn_out = "
";
fpv _ cn _ City = " City:";
Fpv_cn_w = "Weather:";
Fpv_cn_hot = "Temperature:";
Fpv_cn_wind = "Wind direction:";
Fpv_cn_winds = "Wind force:";
fpv_cn.onData = function(data) {
Fpv_cn_str = new string (data);
for(I = 7500; I//city
if (fpv_cn_str.slice(i,I+fpv _ cn _ city . length)= = fpv _ cn _ city){
for(j = I; jif (fpv_cn_str.slice(j,j+fpv _ cn _ out . length)= = fpv _ cn _ out){
temp city . push(fpv _ cn _ str . slice(I+fpv _ cn _ city . length,j- 1));
Break;
}
}
}
//Weather
if (fpv_cn_str.slice(i,i+fpv_cn_w.length) == fpv_cn_w) {
for(k = I; kif (fpv_cn_str.slice(k,k+fpv _ cn _ out . length)= = fpv _ cn _ out){
tempw . push(fpv _ cn _ str . slice(I+fpv _ cn _ w . length,k));
Break;
}
}
}
//temperature
if (fpv_cn_str.slice(i,I+fpv _ cn _ hot . length)= = fpv _ cn _ hot){
for(l = I; lif (fpv_cn_str.slice(l,l+fpv _ cn _ out . length)= = fpv _ cn _ out){
temp hot . push(fpv _ cn _ str . slice(I+fpv _ cn _ hot . length,l));
Break;
}
}
}
//Wind direction
if (fpv_cn_str.slice(i,I+fpv _ cn _ wind . length)= = fpv _ cn _ wind){
for(m = I; mif (fpv_cn_str.slice(m,m+fpv _ cn _ out . length)= = fpv _ cn _ out){
temp wind . push(fpv _ cn _ str . slice(I+fpv _ cn _ wind . length,m));
Break;
}
}
}
//Wind power generation
if (fpv_cn_str.slice(i,I+fpv _ cn _ winds . length)= = fpv _ cn _ winds){
for(n = I; nif (fpv_cn_str.slice(n,n+fpv _ cn _ out . length)= = fpv _ cn _ out){
temp winds . push(fpv _ cn _ str . slice(I+fpv _ cn _ winds . length,n));
Break;
}
}
}
}
//Put into the array
//city: city, w: weather, hot: temperature, wind: wind direction, winds: wind force.
for(o = 0; ofpv _ cn _ weather . push({ city:temp city[o],w:tempw[o],hot:temphot[o],wind:tempwind[o],winds:temp winds[o]);
}
//sort
fpv _ cn _ weather . sorton(" city ");
play();
};
I hope I can help the landlord solve the problem
- Related articles
- There are not many unsubscribes in the ink weather subscription.
- Words describing sunny days after snow
- Poems and ancient poems about lakes
- In the field of international meteorology, the 24 solar terms are known as "the fifth invention of China". What are the 24 solar terms?
- What is the story of Zhou Yu's beating Huang Gai?
- Which month is suitable for camping?
- The weather on June 3rd is 20 16.
- Words describing bad weather
- Information about San Francisco, USA
- How to write a third grade essay about wind