找回密碼
 註冊
[日本手機遊戲APPS下載] 手機遊戲專區 熱門短片

型男索女 
樓主: 〝小趙﹏*

[其他] [_★〝.SD GunDaM OnLinE└*°吹水基地〞↗°° ]__+||

 薦  火... [複製鏈接]
發表於 7-1-2011 21:10:26 | 顯示全部樓層
榮少好奸=.=...
EnviroKin 發表於 7-1-2011 20:46
KIN少重奸....
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:11:06 | 顯示全部樓層
比真冬還厲害? 真冬只能限制著自己每天最多能玩二十四小時遊戲喵...
Dueldoll 發表於 7-1-2011 19:44

N重人格啟動!!0w0
   
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:12:03 | 顯示全部樓層
4G 香港出左了
〝小趙﹏* 發表於 7-1-2011 20:43


下年六月出apple 5~
而且sony有機會出psp go手機
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:13:57 | 顯示全部樓層
i phone 冇人講會出5 =.=
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:15:59 | 顯示全部樓層
我可唔可以加入?
回復 支持 反對

使用道具 舉報

 樓主| 發表於 7-1-2011 21:17:11 | 顯示全部樓層
下年六月出apple 5~
而且sony有機會出psp go手機
藤星 發表於 7-1-2011 21:12

六月出Iphone呢個就唔知
但sony 果部psp phone係一定會出
CES 2011已經見到N咁多次
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:19:22 | 顯示全部樓層
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!-- Fig. 9.6: Craps.html -->
<!-- Craps game simulation. -->
<html xmlns = "http://www.w3.org/1999/xhtml">
   <head>
      <title>Program that Simulates the Game of Craps</title>
      <style type = "text/css">
         table   { text-align: right }
         body    { font-family: arial, sans-serif }
         div.red { color: red }
      </style>
      <script type = "text/javascript">
         <!--
         var sumOfDice = 0; // sum of the dice
         var result;
         var LSresult;
         var bat;
         var balance;
         var batN = 0;
         var balanceN =0;

         // process one roll of the dice
         function play()
         {
                 result=0;
                 LSresult=0;

            document.getElementById( "die1field" ).value = "";
            document.getElementById( "die2field" ).value = "";
            document.getElementById( "die3field" ).value = "";
            document.getElementById( "sumfield" ).value = "";
            
            if (  document.getElementById( "batfield" ).value == "")
                    bat = 0;
            else
                bat = document.getElementById( "batfield" ).value;
            batN = parseInt( bat );
            
            sumOfDice = rollDice();
            
            if ( (sumOfDice%2) == 0 )
            {
                    if ( document.getElementById( "raeven" ).checked )
                            //document.getElementById( "status" ).innerHTML = "You bat Even has won.";
                            result = 1;

                    if ( document.getElementById( "raodd" ).checked )
                            //document.getElementById( "status" ).innerHTML = "You bat Odd has lose.";
                            result = 2;

                    document.getElementById( "oefield" ).value = "Even";
            }
            else
            {
                    if ( document.getElementById( "raodd" ).checked )
                            //document.getElementById( "status" ).innerHTML = "You bat Odd has won.";
                            result = 3;
                   
                    if ( document.getElementById( "raeven" ).checked )
                            //document.getElementById( "status" ).innerHTML = "You bat Even has lose.";
                            result = 4;

                    document.getElementById( "oefield" ).value = "Odd";
            }

            if ( sumOfDice > 10 )
            {
                    document.getElementById( "lsfield" ).value = "Large";

                    if ( document.getElementById( "ralarge" ).checked )
                    {
                            //document.getElementById( "status" ).innerHTML = "You bat Large has won.";
                            if (result ==0)
                                    result = 5;
                            LSresult = 1;
                    }

                    if ( document.getElementById( "rasmall" ).checked )
                    {
                            //document.getElementById( "status" ).innerHTML = "You bat Small has lose.";
                            if (result ==0)
                                    result = 6;
                            LSresult = 2;
                    }
            }
            else
            {
                    document.getElementById( "lsfield" ).value = "Small";

                    if ( document.getElementById( "rasmall" ).checked )
                    {
                            //document.getElementById( "status" ).innerHTML = "You bat Small has won.";
                            if (result ==0)
                                    result = 7;
                            LSresult = 3;
                    }

                    if ( document.getElementById( "ralarge" ).checked )
                    {
                            //document.getElementById( "status" ).innerHTML = "You bat Large has lose.";
                            if (result ==0)
                                    result = 8;
                            LSresult = 4;
                    }
            }
            
            
            switch (result)
            {
                    case 1:
                            switch (LSresult )
                            {
                                    case 0:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has won.";
                                            balanceN = balanceN +batN;
                                            break;
                                    case 1:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has won and You bat Large has won.";
                                            balanceN = balanceN +batN +batN;
                                            break;
                                    case 2:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has won and You bat Small has lose.";
                                            break;
                                    case 3:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has won and You bat Small has won.";
                                            balanceN = balanceN +batN +batN;
                                            break;
                                    case 4:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has won and You bat Large has lose.";
                                            break;
                            }
                            break;
                           
                    case 2:
                            //document.getElementById( "status" ).innerHTML = "You bat Odd has lose.";
                            switch (LSresult )
                            {
                                    case 0:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has lose.";
                                            balanceN = balanceN - batN;
                                            break;
                                    case 1:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has lose and You bat Large has won.";
                                            break;
                                    case 2:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has lose and You bat Small has lose.";
                                            balanceN = balanceN -batN -batN;
                                            break;
                                    case 3:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has lose and You bat Small has won.";
                                            break;
                                    case 4:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has lose and You bat Large has lose.";
                                            balanceN = balanceN -batN -batN;
                                            break;
                            }
                            break;
                           
                    case 3:
                            //document.getElementById( "status" ).innerHTML = "You bat Odd has won.";
                            switch (LSresult )
                            {
                                    case 0:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has won.";
                                            balanceN = balanceN +batN;
                                            break;
                                    case 1:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has won and You bat Large has won.";
                                            balanceN = balanceN +batN +batN;
                                            break;
                                    case 2:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has won and You bat Small has lose.";
                                            break;
                                    case 3:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has won and You bat Small has won.";
                                            balanceN = balanceN +batN +batN;
                                            break;
                                    case 4:
                                            document.getElementById( "status" ).innerHTML = "You bat Odd has won and You bat Large has lose.";
                                            break;
                            }
                            break;
                           
                    case 4:
                            //document.getElementById( "status" ).innerHTML = "You bat Even has lose.";
                            switch (LSresult )
                            {
                                    case 0:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has lose.";
                                            balanceN = balanceN -batN;
                                            break;
                                    case 1:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has lose and You bat Large has won.";
                                            break;
                                    case 2:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has lose and You bat Small has lose.";
                                            balanceN = balanceN -batN -batN;
                                            break;
                                    case 3:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has lose and You bat Small has won.";
                                            break;
                                    case 4:
                                            document.getElementById( "status" ).innerHTML = "You bat Even has lose and You bat Large has lose.";
                                            balanceN = balanceN -batN -batN;
                                            break;
                            }
                            break;
                           
                    case 5:
                            document.getElementById( "status" ).innerHTML = "You bat Large has won.";
                                 balanceN = balanceN +batN;
                            break;
                           
                    case 6:
                            document.getElementById( "status" ).innerHTML = "You bat Small has lose.";
                                 balanceN = balanceN -batN;
                            break;
                           
                    case 7:
                            document.getElementById( "status" ).innerHTML = "You bat Small has won.";
                                 balanceN = balanceN +batN;
                            break;
                           
                    case 8:
                            document.getElementById( "status" ).innerHTML = "You bat Large has lose.";
                                 balanceN = balanceN -batN;
                            break;
            
            }

            document.getElementById( "batfield" ).value = "";
            document.getElementById( "balancefield" ).value = balanceN;
   

         } // end function play
   
         // roll the dice
         function rollDice()
         {
            var die1;
            var die2;
            var die3;
            var workSum;

            die1 = Math.floor( 1 + Math.random() * 6 );
            die2 = Math.floor( 1 + Math.random() * 6 );
            die3 = Math.floor( 1 + Math.random() * 6 );
            workSum = die1 + die2 + die3;

            document.getElementById( "die1field" ).value = die1;
            document.getElementById( "die2field" ).value = die2;
            document.getElementById( "die3field" ).value = die3;
            document.getElementById( "sumfield" ).value = workSum;

            return workSum;
         } // end function rollDice
         // -->
      </script>
   </head>
   <body>
      <form action = "">
         <table border="1" cellpadding="10">
         <caption>Die Game</caption>
                 <tr>
                         <td>Die 1</td>
                    <td><input id = "die1field" type = "text" /></td>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    <td>
                            <label>Odd</label>
                            <input id = "raodd" type = "radio" name = "radiobutton1" value = "odd" />
                    </td>
            </tr>

                 <tr>
                         <td>Die 2</td>
                    <td><input id = "die2field" type = "text" /></td>
                    <td> </td>
                    <td>
                            <label>Even</label>
                            <input id = "raeven" type = "radio" name = "radiobutton1" value = "even" />
                    </td>
                 </tr>
                 <tr>
                         <td>Die 3</td>
                    <td><input id = "die3field" type = "text" /></td>
                    <td> </td>
                    <td>
                            <label>Large</label>
                            <input id = "ralarge" type = "radio" name = "radiobutton2" value = "large" />
                    </td>
            </tr>
            
                 <tr>
                         <td>Sum</td>
                    <td><input id = "sumfield" type = "text" /></td>
                    <td> </td>
                    <td>
                            <label>Small</label>
                            <input id = "rasmall" type = "radio" name = "radiobutton2" value = "small" />
                    </td>
            </tr>

                 <tr>
                         <td>Odd/Even</td>
                    <td><input id = "oefield" type = "text" /></td>
                         <td>Bat Amount</td>
                    <td><input id = "batfield" type = "text" /></td>
            </tr>
                 <tr>
                         <td>Large/Small</td>
                    <td><input id = "lsfield" type = "text" /></td>
                         <td>Balance</td>
                    <td><input id = "balancefield" type = "text" /></td>
            </tr>
         <tr><td /><td><input type = "button" value = "Roll Dice"
           onclick = "play()" /></td></tr>
         </table>
         <div id = "status" class = "red">
            Click the Roll Dice button to play</div>
      </form>
   </body>
</html>


玩下0.0?
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:20:41 | 顯示全部樓層
六月出Iphone呢個就唔知
但sony 果部psp phone係一定會出
CES 2011已經見到N咁多次 ...
〝小趙﹏* 發表於 7-1-2011 21:17



   好似有 google 出個個係統2.3版本
加上800m鏡頭 同1G cpu=3=
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:22:19 | 顯示全部樓層
Program that Simulates the Game of Craps
      
         table   { text-align: right ...
EnviroKin 發表於 7-1-2011 21:19
嘩乜黎
回復 支持 反對

使用道具 舉報

發表於 7-1-2011 21:23:20 | 顯示全部樓層
嘩乜黎
雨﹑飄揚 發表於 7-1-2011 21:22


將佢放去notepad
將save html檔
再開
   
回復 支持 反對

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

小黑屋|Archiver|手機版|Nakuz.com |網站地圖

GMT+8, 7-11-2026 06:34 , Processed in 0.043062 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回復 返回頂部 返回列表