index.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="user-scalable=no, width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1, maximum-scale=1" />
  6. <title>青蛙跳</title>
  7. <meta name='robots' content='noindex,follow' />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  11. <style type="text/css">
  12. #cvd{
  13. width: 77px;
  14. height: 77px;
  15. -webkit-box-shadow: 5px 5px 8px #818181;
  16. -webkit-border-radius: 10px;
  17. }
  18. body {
  19. -webkit-user-select:none;
  20. -webkit-text-size-adjust:none;
  21. -moz-user-select:none;
  22. -moz-text-size-adjust:none;
  23. -ms-user-select:none;
  24. -ms-text-size-adjust:none;
  25. -o-user-select:none;
  26. -o-text-size-adjust:none;
  27. user-select:none;
  28. text-size-adjust:none;
  29. min-height:100%
  30. }
  31. #g1{margin-top:280px;margin-left:40px;position:absolute}
  32. #weixin-share{background-image:url(share.png);height:100px;width:160px;position:absolute;top:0px;left:240px;z-index:699}
  33. #weixin-text{
  34. font-family:"Microsoft Yahei",Arial,Helvetica,sans-serif;
  35. height: 600px;
  36. width: 420px;
  37. margin-top: 0px;
  38. margin-right: auto;
  39. margin-left: auto;
  40. background-color: #E8D9AE;
  41. padding-top: 23px;
  42. padding-left: 40px;
  43. z-index: 600
  44. }#weixin-text #j{
  45. height: 464px;
  46. width: 316px;
  47. background-image: url(j.png);
  48. background-repeat: no-repeat;
  49. padding: 0px;
  50. clear: both;
  51. position: absolute;
  52. z-index: 601;
  53. margin-top: 0px;
  54. margin-right: 0px;
  55. margin-bottom: 0px;
  56. margin-left: 30px;
  57. }#weixin-text #j #txt{font-size:36px;font-weight:bold;color:#790000;margin-top:110px;margin-left:0px;text-align:center;}#weixin-text #j #rank{text-align:center;margin-top:0px;position:absolute;width:100%;padding-top:5px;color:#4E4524}
  58. </style>
  59. </head>
  60. <body style="-webkit-user-select: none;bgcolor=" #ffffff'="" text="#000000" vlink="#7f7f7f" alink="#7f7f7f" link="#7f7f7f">
  61. <script>
  62. var ds_info="Jump from one branch to another and don't fall into the river. Touch the screen to set the jump power and release it to jump.";
  63. function info(){alert(ds_info);}
  64. function ds_HS(){}
  65. function myshow(){}
  66. function mydisable(){}
  67. var par_level;
  68. var par_score;
  69. var par_game;var par_ad2=1;
  70. var par_ad3=1;
  71. var par_ad4=1;
  72. var par_adx2;
  73. var par_adx3;
  74. var par_adx4;
  75. if(0)por="<br><br><br><img border=0 src=\"portrait.jpg\">";
  76. else por="";
  77. var ds_urlhiscore="http://game.ikongzhong.cn";
  78. function ds_RZ(){
  79. }
  80. function ds_SHS(){return "";}
  81. var dsp=new Array("=0",
  82. "main.png",
  83. "http://game.ikongzhong.cn",
  84. 1,
  85. 0,
  86. 0,
  87. 1,
  88. "",
  89. "http://game.ikongzhong.cn",
  90. 1,
  91. 0,
  92. 0,
  93. 1,
  94. 0,
  95. "http://game.ikongzhong.cn",
  96. "http://game.ikongzhong.cn",
  97. "_self",
  98. "udf23hh3r62srayd4",
  99. 0,
  100. 250,
  101. 16,
  102. 1,
  103. "Loading ...",
  104. "ffffff",
  105. "000000",
  106. "00bfdf",
  107. 0,
  108. 1,
  109. 0,
  110. "",
  111. 1,
  112. 1);
  113. </script> <script src="game.js"></script>
  114. <script src="share.js"></script>
  115. <input id="appid" name="appid" type="hidden" value="8596144" />
  116. <script language=javascript>
  117. var mebtnopenurl = 'http://game.ikongzhong.cn';
  118. window.shareData = {
  119. "imgUrl": "http://game.ikongzhong.cn/icon/qwt.png",
  120. "timeLineLink": "http://game.ikongzhong.cn/games/qwt/",
  121. "tTitle": "青蛙跳",
  122. "tContent": "青蛙跳"
  123. };
  124. function goHome(){
  125. window.location=mebtnopenurl;
  126. }
  127. function clickMore(){
  128. if((window.location+"").indexOf("zf",1)>0){
  129. window.location = "http://game.ikongzhong.cn";
  130. }
  131. else{
  132. goHome();
  133. }
  134. }
  135. function dp_share(){
  136. document.title ="青蛙跳,我跳了"+myData.score+"米,不服来战,看你是不是更厉害?";
  137. document.getElementById("share").style.display="";
  138. window.shareData.tTitle = document.title;
  139. }
  140. function dp_Ranking(){
  141. window.location=mebtnopenurl;
  142. }
  143. function showAd(){
  144. }
  145. function hideAd(){
  146. }
  147. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  148. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  149. WeixinJSBridge.invoke('sendAppMessage', {
  150. "img_url": window.shareData.imgUrl,
  151. "link": window.shareData.timeLineLink,
  152. "desc": window.shareData.tContent,
  153. "title": window.shareData.tTitle
  154. }, onShareComplete);
  155. });
  156. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  157. WeixinJSBridge.invoke('shareTimeline', {
  158. "img_url": window.shareData.imgUrl,
  159. "img_width": "640",
  160. "img_height": "640",
  161. "link": window.shareData.timeLineLink,
  162. "desc": window.shareData.tContent,
  163. "title": window.shareData.tTitle
  164. }, onShareComplete);
  165. });
  166. }, false);
  167. </script>
  168. <div id=share style="display: none">
  169. <img width=100% src="share.png"
  170. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  171. ontouchstart="document.getElementById('share').style.display='none';" />
  172. </div>
  173. <div style="display: none;">
  174. <script type="text/javascript">
  175. var myData = { gameid: "qwt" };
  176. //window.shareData.timeLineLink = "http://game.ikongzhong.cn/gamecenter.html?gameid=" + myData.gameid + (localStorage.myuid ? "&uid=" + localStorage.myuid : "");
  177. function dp_submitScore(score){
  178. myData.score = score;
  179. myData.scoreName = score+"米";
  180. if(score>0){
  181. if (confirm("真牛叉,你竟然跳了"+score+"米,快通知一下小伙伴吧!")){
  182. dp_share();
  183. }
  184. }
  185. }
  186. function onShareComplete(res) {
  187. if (localStorage.myuid && myData.score != undefined) {
  188. setTimeout(function(){
  189. if (confirm("要将成绩提交到游戏排行榜吗?")) {
  190. window.location = "http://game.ikongzhong.cn/games/qwt/index.html" + myData.gameid + "&uid=" + localStorage.myuid + "&score=" + myData.score + "&scorename=" + encodeURIComponent(myData.scoreName);
  191. }
  192. else {
  193. document.location.href = mebtnopenurl;
  194. }
  195. }, 500);
  196. }
  197. else {
  198. document.location.href = mebtnopenurl;
  199. }
  200. }
  201. </script>
  202. <div style="display: none;">
  203. </div>
  204. </body>
  205. </html>