📄 news2.js
字号:
var scrollerwidth=274;
var scrollerheight=120;
var scrollerbgcolor='#cccccc'
var messages=new Array();
messages[0] ="<br> 九酷个人主页空间管理程序2.0版(九酷网络v2.0商业版)开始对外特价销售!"
messages[1] = " 另外发现部分用户的E-mail及资料有问题,造成系统无法发送开通信,请大家注意,务必请认真填写申请资料!<br> 我们每个用户的审核都由人工完成,任何一项没有认真填写的资料,都有可能影响您的空间正常开通!"
messages[2] = " 本站所提供的个人主页空间管理程序为1.0版,跟现在2.0版本有所区别,如使用过程中发现有任何Bug,欢迎大家指正,我们将很快提供下一更新版本!<br> 由于时间仓促,也欢迎大家对此版本进行优化,可免费用于各种用途!"
if (messages.length>1)
i=messages.length-1
else
i=0
function move3(whichdiv)
{
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=3)
{
tdiv.style.pixelTop=0
this.timer=setTimeout("move3(tdiv)",5000)
setTimeout("move4(second2)",5000)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1)
{
tdiv.style.pixelTop-=3
setTimeout("move3(tdiv)",10)
}
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<=3)
{
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",5000)
setTimeout("move3(first2)",5000)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1)
{
tdiv2.style.pixelTop-=3
setTimeout("move4(second2)",10)
}
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
second2.style.visibility='visible'
}
else if (document.layers)
{
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+3
document.main.document.second.visibility='show'
}
}
window.onload=startscroll;
if (document.all)
{
document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+'">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">')
document.write(messages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</span>')
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -