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

📄 抽奖程序.htm

📁 java随机抽奖
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0043)http://127.0.0.1:8088/sicar_prise/prise.jsp -->
<HTML><HEAD><TITLE>抽奖程序</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1586" name=GENERATOR>
<META content="" name=Author>
<META content="" name=Keywords>
<META content="" name=Description>
<SCRIPT language=JavaScript>


var pro_timeout = null;
var flash_timeout = null;
function start_pro(){
   document.all.sound.src="";
   document.all.pro_index.innerHTML=pro_index;
   window.clearTimeout(flash_timeout);
   document.all("rollbar").style.filter="Glow(color=#FFFFFF,strength=6)";
   members = document.frames("members").getArry();
   if(members.length<2){
	   alert("抽奖人员必须超过2人!"); 
	   return;
   }
  change();
  document.all.start_btn.disabled = true;
  document.all.stop_btn.disabled = false;
  document.all.return_btn.disabled=true;
  document.all.done_btn.disabled=true;
}
var members = null;

function change(){
   var index = Math.round(Math.random()*(members.length-1));
   document.all.p1.innerHTML=members[index].replace("_"," ");
   pro_timeout = window.setTimeout("change()",5);
}

function stop_pro(){
   flash();
   document.all.sound.src="rw131.mp3";
   window.clearTimeout(pro_timeout);
   document.all.start_btn.disabled = false;
   document.all.stop_btn.disabled = true;

  document.all.return_btn.disabled=false;
  document.all.done_btn.disabled=false;

  //document.frames("members").action(document.all.p1.innerHTML.replace(" ","_"),1);
}

var strth = 0;
function flash(){
    if(strth<120){
		strth+=6;
	}else{
        strth=6;
	}
	//alert(strth);
	document.all("rollbar").style.filter="Glow(color=#FFFFFF,strength="+strth+")";
	flash_timeout = window.setTimeout("flash()",1);
}//bg_all.gif

var pro_index= 1;

function checkMember(){
  document.all.memberTR.style.display="";
  document.all.memberPRC.style.display="none";
  document.all.return_btn.style.display="";
  document.all.done_btn.style.display="none";

  document.all.start_btn.disabled = true;
  document.all.stop_btn.disabled = true;
}

function returnBack(){
  document.all.memberTR.style.display="none";
  document.all.memberPRC.style.display="";
  document.all.return_btn.style.display="none";
  document.all.done_btn.style.display="";

   document.all.start_btn.disabled = false;
  document.all.stop_btn.disabled = true;
}


</SCRIPT>
</HEAD>
<BODY background=抽奖程序.files/bg_all.gif><BGSOUND id=sound src="" volume=50 
loop=infinite autostart="true" height="30" width="145">
<CENTER>
<TABLE style="WIDTH: 100%" border=0>
  <TBODY>
  <TR>
    <TD style="WIDTH: 60%; HEIGHT: 100px" align=middle colSpan=3><FONT 
      style="FONT-SIZE: 50pt; FILTER: glow(color=#FFFFFF,strength=6); WIDTH: 100%; COLOR: #ffff00; LINE-HEIGHT: 150%; FONT-FAMILY: 华文行楷">第<SPAN 
      id=pro_index>1</SPAN>位幸运者</FONT></TD></TR>
  <TR id=memberPRC>
    <TD style="WIDTH: 60%; ; HEIGHT: expression(document.body.offsetHeight-200)" 
    align=middle colSpan=3><FONT id=rollbar 
      style="FONT-SIZE: 120pt; FILTER: glow(color=#FFFFFF,strength=6); WIDTH: 100%; COLOR: #ffff00; LINE-HEIGHT: 150%; FONT-FAMILY: 隶书"><SPAN 
      id=p1></SPAN></FONT></TD></TR>
  <TR id=memberTR style="DISPLAY: none">
    <TD style="WIDTH: 60%; ; HEIGHT: expression(document.body.offsetHeight-200)" 
    align=left colSpan=3><FONT 
      style="FONT-SIZE: 20pt; FILTER: glow(color=#FFFFFF,strength=1); WIDTH: 100%; COLOR: #ffff00; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体"><SPAN 
      id=p3></SPAN></FONT></TD></TR>
  <TR>
    <TD style="WIDTH: 20%">&nbsp;</TD>
    <TD style="WIDTH: 60%">&nbsp;</TD>
    <TD style="WIDTH: 20%"><INPUT onclick=start_pro() type=button value=" 开 始 " name=start_btn><INPUT disabled onclick=stop_pro() type=button value=" 停 止 " name=stop_btn><INPUT style="DISPLAY: none" onclick=returnBack() type=button value=返回抽奖节目 name=return_btn><INPUT onclick=checkMember() type=button value=查看获奖名单 name=done_btn><INPUT onclick='if(confirm("初始化将会把所有人员都加入抽奖名单中,重新进行抽奖,确定吗?")){document.frames("members").Init()}' type=button value=初始化 name=Init_btn></TD></TR></TBODY></TABLE><SPAN 
id=ms style="DISPLAY: none">代抽奖名单:</SPAN><BR><IFRAME id=members 
style="DISPLAY: none; WIDTH: 97%" src="抽奖程序.files/prise_action.htm" 
frameBorder=1></IFRAME></CENTER>
<SCRIPT language=JavaScript src="抽奖程序.files/snow.js"></SCRIPT>
</BODY></HTML>

⌨️ 快捷键说明

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