主题:  标题栏特效问题

tiandi123

职务:普通成员
等级:1
金币:0.0
发贴:3
#12004/11/21 16:50:38
<SCRIPT LANGUAGE="javascript">
<!-- Begin
var message = new Array();
// Set your messages below -- follow the pattern.
// To add more messages, just add more elements to the array.
message[0] = "欢迎光临ABCnet.CN";
message[1] = "这里是javascript特效区";
message[2] = "图片和背景等";
message[3] = "非常多的资源";
message[4] = "你一定会有所收获的";
message[5] = "欢迎你再次光临";
message[6] = "";

// Set the number of repetitions (how many times the arrow
// cycle repeats with each message).
var reps = 2;
var speed = 60; // Set the overall speed (larger number = slower action).

// DO NOT EDIT BELOW THIS LINE.
var p = message.length;
var T = "";
var C = 0;
var mC = 0;
var s = 0;
var sT = null;
if (reps < 1) reps = 1;
function doTheThing() {
T = message[mC];
A();
}
function A() {
s++;
if (s > 9) { s = 1;}
// you can fiddle with the patterns here...
if (s == 1) { document.title = '|||★★★★★=====|||----- ['+T+'] -----'; }
if (s == 2) { document.title = '|||=★★★★★====|||----- ['+T+'] -----'; }
if (s == 3) { document.title = '|||==★★★★★===|||----- ['+T+'] -----'; }
if (s == 4) { document.title = '|||===★★★★★==|||----- ['+T+'] -----'; }
if (s == 5) { document.title = '|||====★★★★★=|||----- ['+T+'] -----'; }
if (s == 6) { document.title = '|||=====★★★★★|||----- ['+T+'] -----'; }
if (s == 7) { document.title = '|||====★★★★★=|||----- ['+T+'] -----'; }
if (s == 8) { document.title = '|||===★★★★★==|||----- ['+T+'] -----'; }
if (s == 9) { document.title = '|||=★★★★★===|||----- ['+T+'] -----'; }
if (C < (8 * reps)) {
sT = setTimeout("A()", speed);
C++;
}
else {
C = 0;
s = 0;
mC++;
if(mC > p - 1) mC = 0;
sT = null;
doTheThing();
}
}
doTheThing();
// End -->
</script>
我是个网页初学者,请问上面的代码中if (reps < 1) reps = 1;这句是什么意思??