﻿var marqueeContent=new Array();

marqueeContent[0]='<img src="http://www.richman.com.tw/uploads/smil48901e8f48a56.gif" align="absmiddle"> <a href="http://www.richman.com.tw/modules/newscenter/item.php?itemid=232" title="台生「赴京趕考」 最瘋心理師證照" target="_top">台生「赴京趕考」 最瘋<strong class="blue">心理師證照</strong>，究竟為何心理諮詢師證照如此熱門呢？</a>';

marqueeContent[1]='<img src="http://www.richman.com.tw/uploads/smil48901a10504fc.gif" align="absmiddle"> <a href="http://www.richman.com.tw/modules/smartsection/item.php?itemid=322" title="什麼是大陸職業資格證書制度？職業資格證書分幾個等級？" target="_top">什麼是<strong class="blue">大陸職業資格證書制度</strong>？職業資格證書分幾個等級？中華國際專業人才網為您清楚說明。</a>';

marqueeContent[2]='<img src="http://www.richman.com.tw/uploads/savt4890194127d6d.gif" align="absmiddle"> <a href="http://www.richman.com.tw/modules/smartsection/item.php?itemid=12" title="心理諮詢師證照前景分析" target="_top"><strong class="blue">心理諮詢師證照</strong>前景分析</a> <img src="http://www.richman.com.tw/uploads/savt489018d5b070d.gif" align="absmiddle"> <a href="http://www.richman.com.tw/modules/smartsection/item.php?itemid=11" title="心理諮詢師證照報考條件" target="_top">心理諮詢師證照報考條件</a> <img src="http://www.richman.com.tw/uploads/smil48901a10504fc.gif" align="absmiddle"> <a href="http://www.richman.com.tw/modules/smartsection/item.php?itemid=10" title="心理諮詢師證照常見問題" target="_top">心理諮詢師證照常見問題</a>';

marqueeContent[3]='<img src="http://www.richman.com.tw/uploads/smil48901e8f48a56.gif" align="absmiddle"> <a href="http://www.richman.com.tw/modules/smartsection/item.php?itemid=248" target="_top">中華國際專業人才網誠摯推薦您本世紀最重要的一張國際金融證照 - <a href="http://www.richman.com.tw/modules/smartsection/item.php?itemid=249" title="保險經紀人證照" target="_top"><strong class="blue">保險經紀人證照</strong></a>。</a>';

var marqueeInterval=new Array();
var marqueeId=0;
var marqueeDelay=5800;
var marqueeHeight=16;
function initMarquee() {
 var str=marqueeContent[0];
 document.write('<div id=marqueeBox style="overflow:hidden;height:'+marqueeHeight+'px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\'startMarquee()\',marqueeDelay)"><div>'+str+'</div></div>');
 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()",8);
 }
function scrollMarquee() {
 marqueeBox.scrollTop++;
 if(marqueeBox.scrollTop%marqueeHeight==marqueeHeight){
  clearInterval(marqueeInterval[1]);
  }
 }
initMarquee();
