Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (39.36 KB, 2 trang )
<div class="content"><script type="text/javascript" src=
" /></script> <script type="text/javascript">
var tpWeather;
function change(tentp,nhietdo,anh,thoitiet,doam,gio)
{
document.getElementById("ttNhietDo").innerHTML=nhietdo;
document.getElementById("ttAnh").innerHTML='<img
src=" />';
document.getElementById("ttThoitiet").innerHTML=thoitiet+'<br />Độ ẩm: '+doam+'<br
/>'+gio;
}
function ShowWeatherBox(intVal)
{
change(weather[intVal][1],weather[intVal][2],weather[intVal][3],weather[intVal]
[4],weather[intVal][5],weather[intVal][6]);
}
function ShowWeather()
{
var strcboWeather='';
for(var i=0;i<weather.length;i++)
{
if(weather[i][0]=='tphanoi')tpWeather=i;
strcboWeather+='<option value="'+i+'"'+(weather[i][0]=='tphanoi'?' selected="selected"':'')
+'>'+weather[i][1]+'<\/option>';
}
//document.getElementById("cboWeather").innerHTML= strcboWeather;
};
</script> <select id="cboWeather" class="ttfontselect" onchange=
"ShowWeatherBox(this.value);"><script type="text/javascript">
var strcboWeather='';
for(var i=0;i<weather.length;i++)