";
html += "
"+obj.description+"
";
}
}else if(obj.type=="PHOA"){
html += "
";
html += "
";
if(obj.image!=""){
html += "
";
}
}else if(obj.type=="VIDE"){
html += "
";
html += "
";
html += "
";
html += "
"+obj.description+"
";
}
html += "
";
for(var i=0;i"+tagArray[i]+" ";
}
html += "
";
html += "
"+obj.dateTime+"
";
html += "
";
return html;
}
//获取新数据
function getNewData(){
$.getJSON(url+"?r="+Math.random(),function(data){
var newDataArray = data.rollData;
var distance = 0;
if(dataArray!=null&&dataArray[0].title!=""){
for(var i=0;i
更新0条新闻,点击刷新 ";
$(".moption").html(topHtml);
dataArray = newDataArray;
})
}
//获取新数据的条数
function getNewDataNum(){
$.getJSON(url+"?r="+Math.random(),function(data){
var newDataArray = data.rollData;
var distance = 0;
if(dataArray!=null&&dataArray[0].title!=""){
for(var i=0;i更新"+distance+"条新闻,点击刷新 ";
$(".moption").html(topHtml);
})
}
getData();
window.setInterval("getNewDataNum()",120000);
function jsonpcallback(data){
var myNineTime = '各网头条汇'+ data['date']+'';
var myNineHtml = "";
var myNine = data['news_list'];
for(var i=0;i"+myNine[i].source+":"+myNine[i].title+"";
}
$("#myNineTime").html(myNineTime);
$("#myThreeTime").html(data['date']);
$("#myNine").html(myNineHtml);
}
function loadNineData(){
function loadjquery(m){
var d=document.createElement("script");
d.setAttribute("charset","utf-8");
d.type="text/javascript";
d.language="javascript";
d.src=m;
document.getElementsByTagName("body")[0].appendChild(d);
if(d.readyState){
d.onreadystatechange=function(){
if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){
//外部js加载完成
delete d;
}
}
}else{
d.onload=function(){
delete d;
}
}
}
var nineUrl="//news.cntv.cn/xinwentoutiao/topten/EconomicHeadlines.js";
loadjquery(nineUrl);
}