<script>
scrollit(80,"aaaaaaaaaaaaaa");
function scrollit(seed,msg) {
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+",'"+msg+"')";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+",'"+msg+"')";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+",'"+msg+"')";
timerTwo=window.setTimeout(cmd,100);
}
else {
cmd="scrollit("+seed+",'"+msg+"')";
window.status=" ";
timerTwo=window.setTimeout(cmd,75);
}
}
}
</script>
scrollit(80,"aaaaaaaaaaaaaa");
function scrollit(seed,msg) {
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+",'"+msg+"')";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+",'"+msg+"')";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+",'"+msg+"')";
timerTwo=window.setTimeout(cmd,100);
}
else {
cmd="scrollit("+seed+",'"+msg+"')";
window.status=" ";
timerTwo=window.setTimeout(cmd,75);
}
}
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货