var marqueeContent = new Array();   //滚动主题
marqueeContent[0] = "<a class=\"whitelink\" title=\"做个合格的IT人 写给新入IT的新人们 \" href=\"http://www.nj-test.com/post/9162.html\" target=\"_blank\">做个合格的IT人 写给新入IT的新人们 </a>";
marqueeContent[1] = "<a class=\"whitelink\" title=\"态度决定一切 参加IT培训需要快、准、狠 \" href=\"http://www.nj-test.com/post/9157.html\" target=\"_blank\">态度决定一切 参加IT培训需要快、准、狠</a>";
marqueeContent[2] = "<a class=\"whitelink\" title=\"如何选择有发展前景的专业 \" href=\"http://www.nj-test.com/post/9145.html\" target=\"_blank\">如何选择有发展前景的专业 </a>";
marqueeContent[3] = "<a class=\"whitelink\" title=\"技能比文凭更重要 \" href=\"http://www.nj-test.com/post/9139.html\" target=\"_blank\">技能比文凭更重要</a>";
marqueeContent[4] = "<a class=\"whitelink\" title=\"IT职业教育引发市场关注 \" href=\"http://www.nj-test.com/post/9131.html\" target=\"_blank\">IT职业教育引发市场关注</a>";
marqueeContent[5] = "<a class=\"whitelink\" title=\"2010年:IT行业走向复苏\" href=\"http://www.nj-test.com/post/9125.html\" target=\"_blank\">2010年:IT行业走向复苏</a>";
marqueeContent[6] = "<a class=\"whitelink\" title=\"软件/网络工程师“钱途”美好 培训生成企业争抢对象 \" href=\"http://www.nj-test.com/post/9108.html\" target=\"_blank\">软件/网络工程师“钱途”美好 培训生成企业争抢对象</a>";
marqueeContent[7] = "<a class=\"whitelink\" title=\"风投青睐IT培训行业 中国IT教育迎上市高潮 \" href=\"http://www.nj-test.com/post/9104.html\" target=\"_blank\">风投青睐IT培训行业 中国IT教育迎上市高潮</a>";
marqueeContent[8] = "<a class=\"whitelink\" title=\"2009年北大青鸟“优秀管理团队”奖颁奖现场\" href=\"http://www.nj-test.com/post/7073.html\" target=\"_blank\">2009年北大青鸟“优秀管理团队”奖颁奖现场</a>";
marqueeContent[9] = "<a class=\"whitelink\" title=\"当高考结束时，我们的大学时代也画上句...\" href=\"http://www.nj-test.com/post/9086.html\" target=\"_blank\">当高考结束时，我们的大学时代也画上句...</a>";
marqueeContent[10] = "<a class=\"whitelink\" title=\"神州数码CEO郭为 \" href=\"http://www.nj-test.com/post/9078.html\" target=\"_blank\">神州数码CEO郭为</a>";
marqueeContent[11] = "<a class=\"whitelink\" title=\"自主创业存在95％现象 先就业后创业成功几率高 \" href=\"http://www.nj-test.com/post/9062.html\" target=\"_blank\">自主创业存在95％现象 先就业后创业成功几率高</a>";
marqueeContent[12] = "<a class=\"whitelink\" title=\"北大青鸟: IT培训打造职场“硬通货” \" href=\"http://www.nj-test.com/post/9058.html\" target=\"_blank\">北大青鸟: IT培训打造职场“硬通货”</a>";
marqueeContent[13] = "<a class=\"whitelink\" title=\"给准备创业者的建议 \" href=\"http://www.nj-test.com/post/9050.html\" target=\"_blank\">给准备创业者的建议</a>";
marqueeContent[14] = "<a class=\"whitelink\" title=\"高考落榜生的另一个出路 \" href=\"http://www.nj-test.com/post/9045.html\" target=\"_blank\">高考落榜生的另一个出路</a>";
marqueeContent[15] = "<a class=\"whitelink\" title=\"‘兼职王’优雅的转身--袁颢 \" href=\"http://www.nj-test.com/post/9023.html\" target=\"_blank\">‘兼职王’优雅的转身--袁颢 </a>";
marqueeContent[16] = "<a class=\"whitelink\" title=\"教你应付面试最难回答的八个问题\" href=\"http://www.nj-test.com/post/9158.html\" target=\"_blank\">教你应付面试最难回答的八个问题</a>";
marqueeContent[17] = "<a class=\"whitelink\" title=\"求职者克服应聘面试怯场十招必杀技 \" href=\"http://www.nj-test.com/post/9153.html\" target=\"_blank\">求职者克服应聘面试怯场十招必杀技</a>";
marqueeContent[18] = "<a class=\"whitelink\" title=\"初入职场之面试全攻略 \" href=\"http://www.nj-test.com/post/9149.html\" target=\"_blank\">初入职场之面试全攻略</a>";
marqueeContent[19] = "<a class=\"whitelink\" title=\"应聘时向主考官提出的10个漂亮的问题  \" href=\"http://www.nj-test.com/post/9140.html\" target=\"_blank\">应聘时向主考官提出的10个漂亮的问题</a>";
marqueeContent[20] = "<a class=\"whitelink\" title=\"面试都要知道的八点禁忌语言\" href=\"http://www.nj-test.com/post/9133.html\" target=\"_blank\">面试都要知道的八点禁忌语言</a>";
marqueeContent[21] = "<a class=\"whitelink\" title=\"面试被“借脑”，如何去应对？  \" href=\"http://www.nj-test.com/post/9127.html\" target=\"_blank\">面试被“借脑”，如何去应对？ </a>";
marqueeContent[22] = "<a class=\"whitelink\" title=\"做事高调，做人低调，态度决定成败关键 \" href=\"http://www.nj-test.com/post/9126.html\" target=\"_blank\">做事高调，做人低调，态度决定成败关键</a>";
marqueeContent[23] = "<a class=\"whitelink\" title=\"就业指导——面试指导\" href=\"http://www.nj-test.com/post/9117.html\" target=\"_blank\">就业指导——面试指导</a>";
marqueeContent[24] = "<a class=\"whitelink\" title=\"如何学会与人配合 \" href=\"http://www.nj-test.com/post/9116.html\" target=\"_blank\">如何学会与人配合 </a>";
marqueeContent[25] = "<a class=\"whitelink\" title=\"事不是做越多越好\" href=\"http://www.nj-test.com/post/9105.html\" target=\"_blank\">事不是做越多越好</a>";
marqueeContent[26] = "<a class=\"whitelink\" title=\"职业规划师帮你正确职业定位 \" href=\"http://www.nj-test.com/post/9101.html\" target=\"_blank\">职业规划师帮你正确职业定位</a>";
marqueeContent[27] = "<a class=\"whitelink\" title=\"求职成功必备的三大技能\" href=\"http://www.nj-test.com/post/9079.html\" target=\"_blank\">求职成功必备的三大技能</a>";
var marqueeInterval = new Array();  //定义一些常用而且要经常用到的变量
var marqueeId = 0;
var marqueeDelay = 4000;
var marqueeHeight = 15;
function initMarquee() {
	var str = marqueeContent[0];
	document.write("<span id=marqueeBox style=\"overflow:hidden;height:" + marqueeHeight + "px\" onmouseover=\"clearInterval(marqueeInterval[0])\" onmouseout=\"marqueeInterval[0]=setInterval('startMarquee()',marqueeDelay)\"><span>" + str + "</span></span>");
	marqueeId++;
	marqueeInterval[0] = setInterval("startMarquee()", marqueeDelay);
}
function startMarquee() {
	var str = marqueeContent[marqueeId];
	marqueeId++;
	if (marqueeId >= marqueeContent.length) {
		marqueeId = 0;
	}
	if (marqueeBox.childNodes.length == 1) {
		var nextLine = document.createElement("DIV");
		nextLine.innerHTML = str;
		marqueeBox.appendChild(nextLine);
	} else {
		marqueeBox.childNodes[0].innerHTML = str;
		marqueeBox.appendChild(marqueeBox.childNodes[0]);
		marqueeBox.scrollTop = 0;
	}
	clearInterval(marqueeInterval[1]);
	marqueeInterval[1] = setInterval("scrollMarquee()", 10);
}
function scrollMarquee() {
	marqueeBox.scrollTop++;
	if (marqueeBox.scrollTop % marqueeHeight == marqueeHeight) {
		clearInterval(marqueeInterval[1]);
	}
}
initMarquee();


