');
}
$('#prAlarmList').html(prAlarmHtml.join(''));
// 国家级预警列表
var gjAlarmHtml = [];
for(var i = 0; i < res.data.gj.length; i++){
var alarm = res.data.gj[i];
gjAlarmHtml.push('
' + alarm.title + '');
}
$('#gjAlarmList').html(gjAlarmHtml.join(''));
alarmflip();
});
});
function alarmflip(){
try {
clearTimeout($vv);
}catch(e){}
$v=$(".list_hp_qxyj:visible");
$vi=$(".list_hp_qxyj").index($v);
if ($vi == $(".list_hp_qxyj").length-1)
{
$vi=0;
}else
{
$vi=$vi+1;
}
$nextv=$(".list_hp_qxyj").eq($vi);
$(".con_list_hp_qxyj").flip({
color:'transparent',
direction:'tb',
speed:150,
onAnimation:function(){
color:'#333',
$v.hide();
$nextv.show();
}
});
$vv=setTimeout ("alarmflip()",4000);
}
$(".con_list_hp_qxyj").find(".list_hp_qxyj").on("mouseover",function(){
try {
clearTimeout($vv);
}catch(e){}
});
$(".con_list_hp_qxyj").find(".list_hp_qxyj").on("mouseout",function(){
try {
clearTimeout($vv);
}catch(e){}
$vv=setTimeout ("alarmflip()",4000);
});