⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 实例79.体育彩票选号器.html

📁 JSP网页中用到的JavaScript特效
💻 HTML
字号:
<script language="javascript">
<!--
function checkp()
{
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;
}

var idx;
var powerball = new Array(6); 
powerball = this.checkp(); 
document.write("<center>");    
document.write("<hr width=400><font size=5>");
for(idx = 0; idx < 5; idx++)
        document.write(powerball[idx] + " - ")   
document.write("</font><font color=#D00000 size=5>" + powerball[idx] + "</font>"); 
document.write("</center>");
//-->
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -