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