请教一下以下代码中的一句
状态栏转马灯程序<html>
<head>
<title>状态栏跑马灯</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--
function scrollit(seed) {
var m1 = "你想说的话1 ";
var m2 = "你想说的话2 ";
var m3 = "你想说的话3 ";
var m4 = "你想说的话4 ";
var m5 = "你想说的话5 ";
var msg=m1+m2+m3+m4+m5;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
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+")";
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+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}
//-->
</script>
</head>
<body onLoad="scrollit(100)">
</body>
</html>
这一句timerTwo=window.setTimeout(cmd,100);中,cmd是一个字符串吧,一般setTimeout第一个参数是一个方法,这里字符串有什么用?赋值给timerTwo,而timerTwo在程序里好像啥都没干啊?