- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>彩票机选-演示http://tool.chinabodyart.com/lot</title>
- <style type="text/css">
- <!--
- *{
- font-family: simsun, Verdana, Lucida, Arial, Helvetica, sans-serif;
- font-size: 12px;
- line-height: normal;
- margin:0;
- }
- #top {
- margin-top:20px;
- }
- #menu {
- width:120px;
- background-color:#CCCCCC;
- font-size:14px;
- margin:0 auto;
- padding:8px;
- float:left;
- }
- #menu a,#menu a:visited{
- text-align:center;
- padding:4px;
- display:block;
- color:#000;
- text-decoration:none;
- margin:8px 0;
- border-right-width: 8px;
- border-left-width: 8px;
- border-right-style: solid;
- border-left-style: solid;
- border-right-color: #9ab;
- border-left-color: #9ab;
- background-color:#FFFFFF;
- }
- #menu a:hover{
- border-right-color: #000;
- border-left-color: #000;
- }
- #content{
- width:800px;
- height:200px;
- float:left;
- font-size:14px;
- margin-left:20px;
- }
- #ball {
- width:44px;
- height:44px;
- padding:20px 20px 20px 20px;
- list-style:none;
- float:left;
- background-image:url(r_bg.jpg);
- font-size:36px;
- font-family:Arial;
- color:#FFF;
- }
- .b{
- background-image:url(b_bg.jpg) !important;
- }
- .red{
- color:#F00;
- }
- -->
- </style>
- <?
- function lot($x,$y)
- {$array23=array();
- $i=0;
- while(count($array23)<$y)
- { $b=rand(1,$x);
- if(in_array($b,$array23))
- {}
- else
- $array23[]=$b;
- }
- sort($array23);
- return $array23;
- }
- function disp($array_dis){
- foreach($array_dis as $v)
- {
- echo "<div id=ball>".$v."</div>";
- }
- }
- function disp_b($array_dis_b){
- foreach($array_dis_b as $v)
- {
- echo "<div id=ball class=b>".$v."</div>";
- }
- }
- $x23=lot(23,5);
- $x30=lot(30,7);
- $x33=lot(33,6);
- $x16=lot(16,1);
- ?>
- <script language="javascript">
- function init23(){
- content.innerHTML='<? disp($x23); ?>';
- }
- function init30(){
- content.innerHTML='<? disp($x30); ?>';
- }
- function init_doub(){
- content.innerHTML='<? disp($x33); disp_b($x16); ?>';
- }
- </script>
- </head>
- <body>
- <div id="menu">
- <a οnclick="init23()">23选5</a>
- <a οnclick="init30()">30选7</a>
- <a οnclick="init_doub()">双色球</a>
- </div>
- <div id="content">
- </div>
- </body>
没事闲的做了个简单的福利彩票机选-写的不是很规范
最新推荐文章于 2021-12-09 14:46:01 发布