HTML5
<script src="/files/1043097/jquery.js"></script> <script src="/files/1091621/cookies.js"></script> <style> a img{ max-width: 100%; border-style: none; box-shadow: 0px 1px 3px 0px #000; border-radius: 10px; margin-top: 10px; margin-left: 10px; } .atm{ padding: 5px; text-align: center; background: #0068FF; color: #fff; font-size: 23px; border-radius: 5px 5px 0px 0px; } .lacbaucua,.button{ background: -webkit-linear-gradient(#EDD23C, #CDB000); padding: 8px 20px 6px 20px; font-family: sans-serif; font-weight: bold; color: #533B05; border: 1px solid #55490C; border-radius: 3px; box-shadow: 0px 1px 0px 0px #FFEE95 inset, 0px 1px 1px 0px #5B4F00; text-shadow: 0px 1px 0px #F5ECC3; cursor: pointer; outline: 0px; text-transform: uppercase; margin:3px 0px; } .lacbaucua:active,.button:active{ box-shadow: 0px 1px 1px 0px #FFF9D7 inset; } .mh{float:left;width:350px;} .sl{float:left;width:150px;} .ht{ background: #0D91FF; margin: 5px 5px; height: 200px; border-radius: 5px; box-shadow: 0px 0px 20px 0px #000 inset,0px 0px 10px 0px #000; border: 5px solid #eee; padding: 10px 20px; } .sm{ height:200px; padding:10px; } </style> <script> $(function(){ function atm(){ $('#sanhgame').click(function(){location='main.php?f=3444759';}); $('#vay').click(function(){ $('.ht').html('Bạn có muốn vay tiền từ máy ATM là 5000 xu không?<br><div class="button" id="covay">Có</div><div class="button" id="khongvay">Không</div>'); atm(); }); $('#tra').click(function(){ $('.ht').html('Bạn có chắc chắn là trả 5000 xu cho máy ATM?<br><div class="button" id="cotra">Có</div><div class="button" id="khongtra">Không</div>'); atm(); }); $('#khongvay,#khongtra').click(function(){ $('.ht').html('Thông tin tài khoản<br>Tiền xu: 1500<br>Tiền đã vay: 0'); atm(); }) var vay='0'; $('#covay').click(function(){ if(vay==0){ $('.ht').html('Cám ơn bạn đã sử dụng dịch vụ vay tiền của chúng tôi.'); setCookie('tien',1500-1+5001,3600); setCookie('vay','20000',3600); location=''; }else{ $('.ht').html('Bạn chưa trả tiền cho ATM mà!?'); } }) $('#cotra').click(function(){ if(vay>=5000){ $('.ht').html('Bạn đã trả tiền cho ATM chúng tôi'); setCookie('tien',1500-5000,3600); setCookie('vay','0',3600); location=''; }else{ $('.ht').html('Bạn không thiếu tiền ATM mà!?'); } }) } atm(); }) </script> <div class="table" style="text-align:left"> <div class="atm">ATM</div> <div class="mh"><div class="ht">Thông tin tài khoản<br>Tiền xu: 1500<br>Tiền đã vay: 0</div></div> <div class="sl"><div class="sm"> <div class="button" id="vay">Vay tiền</div> <div class="button" id="tra">Trả tiền</div> <div class="button" id="sanhgame">Sảnh Game</div> </div></div> </div> </div> </div> </div>
Code thuần html nhé.
code này sử dụng chung(chung tiền)
Share game bầu cua, chuẩn đẹp trai share game nông trại Share code game bài cào cool