//构建一个数组对象
tips = new Array(6); 
//为数组定义初始值
tips[0]="每日一语(1)"; tips[1]="每日一语(2)"; tips[2]="每日一语(3)"; tips[3]="每日一语(4)"; tips[4]="每日一语(5)"; tips[5]="每日一语(6)"; 
//Math.random() 产生随机类,是个静态类,直接打点调出方法//tips.length数组长度,值等于6//Math.floor一个取值的方法,好像是小于某个固定值的最大整数比如Math.floor(4.5)就应该取出的是4
//此时index是个整型
index = Math.floor(Math.random() * tips.length); //在页面输出tips[index]的值,字体大小SIZE=8,颜色COLOR=DARKBLUE
document.write(" <FONT SIZE=8 COLOR=DARKBLUE>" + tips[index]+" </FONT>"); 
//我不明白tips[index]是在哪里赋值的,index = Math.floor(Math.random() * tips.length);这里只是对index赋值吧 
好像也没有确定index是tips的元素阿? 
定义了tips数组并且已赋值,tips[index],index只是一个下标索引位置,在index = Math.floor(Math.random() * tips.length); 已经明确定义了index的值
所以tips[index]可以读到相应的值.