//设置下面的三行参数，分别是宽度、高度和背景色。
var scrollerwidth=688
var scrollerheight=30
var scrollerbgcolor='transparent'

//下面设置显示的文字内容，可以使用标准的HTML语法。
var messages=new Array()
messages[0]="Adversity makes a man wise, not rich.<br>逆境出人才。"
messages[1]="A friend without faults will never be found.<br>没有十全十美的朋友。"
messages[2]="All good things come to an end.<br>天下没有不散的筵席。"
messages[3]="Actions speak louder than words. <br>行动胜于言辞。"
messages[4]="Better late than never. <br>迟做总比不做好。"
messages[5]="Take a pain for a pleasure all wise man can. <br>智者能视苦为乐。"
messages[6]="Tastes differ. <br>众口难调。"
messages[7]="A bird in the hand is worth two in the bush.<br> 多得不如现得。"
messages[8]="Live and learn. <br>活到老，学到老。"
messages[9]="There is no royal road to learning. <br>学问无坦途。"
messages[10]="A little knowledge is a dangerous thing. <br>一知半解，自欺欺人。"
messages[11]="A man becomes learned by asking questions. <br>不耻下问才能有学问。"
messages[12]="An hour in the morning is worth two in the evening. <br>一日之计在于晨。"
messages[13]="Complacency is the enemy of study.<br> 学习的敌人是自己的满足。"

//下面的代码不要改动

if (messages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",3000)
setTimeout("move2(document.main.document.second)",3000)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",100)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",3000)
setTimeout("move1(document.main.document.first)",3000)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",100)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",3000)
setTimeout("move4(second2)",3000)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5
setTimeout("move3(tdiv)",100)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",3000)
setTimeout("move3(first2)",3000)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5
setTimeout("move4(second2)",100)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (document.all){
move3(first2)
second2.style.top=scrollerheight
}
else if (document.layers){
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll


