要完成此效果把如下代码加入到区域中 <Script language="javascript"> function Quickpick() { var ball for( ball = 0; ball < 5; ball++) { this[ball] = parseInt((Math.random() * Math.pow(10,16)) % 49) + 1; for(var list = 0; list < ball; list++) { if(this[list] == this[ball]) { list = ball; ball--; } } } this[ball] = parseInt((Math.random() * Math.pow(10,16)) % 42) + 1; return this; } </Script> <Script language="javascript"> var idx; var powerball = new Array(6); powerball = this.Quickpick(); document.write(""); document.write("POWERBALL"); document.write(""); for(idx = 0; idx < 5; idx++) document.write(powerball[idx] + " - ") document.write("" + powerball[idx] + ""); document.write(""); </Script> 特别说明:如网页特效代码中有引用图片文件等,请自己下载到本地调试!