index.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>数字闯关</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0,minimal-ui,user-scalable=no">
  7. <meta content="yes" name="apple-mobile-web-app-capable" />
  8. <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  9. <style>
  10. *{
  11. margin:0;
  12. padding:0;
  13. }
  14. #js-fps {
  15. position:absolute;
  16. top:0;
  17. left:0;
  18. z-index:1000;
  19. margin:0 auto;
  20. color:#FFF;
  21. font-size:20px;
  22. }
  23. body{
  24. background: #d9f5ff;
  25. background-image: -webkit-gradient(linear,left top,left bottom,from(#d9f5ff),to(#d9f5ff));
  26. overflow: hidden;
  27. }
  28. #bg,canvas{
  29. overflow: hidden;
  30. top: 0;
  31. left: 0;
  32. bottom: 0;
  33. right: 0;
  34. margin: auto;
  35. z-index: 1;
  36. }
  37. .hide{
  38. display: none;
  39. }
  40. #share{
  41. z-index: 5;
  42. background: rgba(0, 0, 0, 0.53);
  43. width: 100%;
  44. height: 100%;
  45. position: absolute;
  46. }
  47. #share img{ height:150px; width: 180px; position: absolute; right: 0; top: 0; }
  48. </style>
  49. <script>
  50. var _czc = _czc || [];
  51. _czc.push(['_setAccount',1253076839]);
  52. </script>
  53. <link rel="stylesheet" type="text/css" href="css/game9g.css">
  54. <script src="js/game9g.js"></script>
  55. </head>
  56. <body>
  57. <div id="moregame" style="position:fixed;z-index:99; bottom:20px; left:0px; font-size:20px; width:100%; text-align:center;">
  58. <a href="javascript:void(0);" style="padding: 8px 20px;
  59. background-color: rgb(93, 18, 163);
  60. border-radius: 5px;
  61. text-decoration: none;color:white;" onClick="clickMore();">更多游戏</a>
  62. </div>
  63. <script src="js/hilo-standalone.js"></script>
  64. <script src="js/number.min.js?v=2014"></script>
  65. <script language=javascript>
  66. var game9g = new Game9G("szcg");
  67. game9g.shareData.title = "数字闯关";
  68. game9g.shareData.content = "数字闯关,通过点击图中数字,该数字及其相邻数字都减一,直至所有数字都减为0,游戏通关";
  69. function goHome(){
  70. window.location=game9g.gzurl;
  71. }
  72. function clickMore(){
  73. if((window.location+"").indexOf("f=zf",1)>0){
  74. window.location = game9g.gzurl;
  75. }
  76. else{
  77. goHome();
  78. }
  79. }
  80. function dp_share(){
  81. game9g.share();
  82. }
  83. function dp_Ranking(){
  84. window.location=game9g.homeurl;
  85. }
  86. function showAd(){
  87. }
  88. function hideAd(){
  89. }
  90. function dp_submitScore(score){
  91. game9g.score =parseInt(score);
  92. game9g.scoreName = "闯过"+score+"关";
  93. game9g.shareData.title ="谁能超越我?我在数字闯关小游戏连闯过"+score+"关!";
  94. }
  95. </script>
  96. <div style="display: none;">
  97. </div>
  98. </body>
  99. </html>