" + zzqdata.lists[i].date + "
");
}
},
error: function() {
//alert('fail-自治区');
}
});
});
" + _date + "
";
itemp++;
}
getGwyData(itemp, strHtml);
}
});
function getGwyData(itemp, strdata) {
$.ajax({
url: 'https://www.gov.cn/pushinfo/v150203/pushinfo.jsonp',
dataType: "jsonp",
jsonp: "pushInfoJsonpCallBack",
jsonpCallback: "pushInfoJsonpCallBack",
scriptCharset: "utf-8",
success: function(data) {
var _gwy = "";
$.each(data, function(i, json) {
if (i == (3 - itemp)) {
return false;
}
_gwy +=
"
";
})
$("#gwyData").append(strdata + _gwy);
},
error: function() {}
});
}
})()
//切换
$(document).ready(function() {
$("#tzgg").mousemove(function() {
$(".moreHeadline:nth-child(1) .bt").removeClass("on")
$(this).addClass("on")
$(".newsli ul").removeClass("active")
$(".newsli ul").eq(0).addClass("active")
$(".moreHeadline:nth-child(1) a").removeClass("on")
$(".moreHeadline:nth-child(1) a:nth-child(4)").addClass("on")
})
$("#gwyxx").mousemove(function() {
$(".moreHeadline:nth-child(1) .bt").removeClass("on")
$(this).addClass("on")
$(".newsli ul").removeClass("active")
$(".newsli ul").eq(1).addClass("active")
$(".moreHeadline:nth-child(1) a").removeClass("on")
$(".moreHeadline:nth-child(1) a:nth-child(5)").addClass("on")
})
$("#zzqNews").mousemove(function() {
$(".moreHeadline:nth-child(1) .bt").removeClass("on")
$(this).addClass("on")
$(".newsli ul").removeClass("active")
$(".newsli ul").eq(2).addClass("active")
$(".moreHeadline:nth-child(1) a").removeClass("on")
$(".moreHeadline:nth-child(1) a:nth-child(6)").addClass("on")
})
})