var data=["新闻媒体","组织协会","体育报刊","新闻研究","经济报刊","电脑报刊","网上新闻","XML资讯"];
$(function(){$(".topbox").empty();for(var i=0; i<data.length; i++){var index=data[i];$(".topbox").append("<li>"+index.substr(0,4)+"</li>");}});