index.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <!DOCTYPE html >
  2. <html >
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta id="viewport" name="viewport" content="width=480,user-scalable=no,uc-user-scalable=no,target-densitydpi=high-dpi" />
  6. <meta name="apple-mobile-web-app-capable" content="yes" />
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  8. <link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png" />
  9. <link rel="apple-touch-startup-image" href="startup.png">
  10. <script language="javascript" type="text/javascript" src="js/jsgamemin.js"></script>
  11. <script language="javascript" type="text/javascript" src="js/munaiyiguilai.js"></script>
  12. <title>木乃伊归来</title>
  13. <style>
  14. body{margin:0px; background-color:#434243; color:#6A6A6A;}
  15. .bandiv{float:left; width:100%; background-color:#DBD1BB;}
  16. .bandiv div{padding:10px; text-align:left;}
  17. </style>
  18. <style>
  19. html {
  20. -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
  21. }
  22. .sbgshow{z-index:10000;display:block;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:30px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  23. .sbgshow .arron{z-index:10000; position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(./img/arron.png) no-repeat; background-size:100px 100px;}
  24. .sbgshow p{z-index:10000; padding-top:78px;}
  25. .sbg{display:none; z-index:10000; position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:26px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  26. .sbg .arron{ z-index:10001; position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(./img/arron.png) no-repeat; background-size:100px 100px;}
  27. .sbg p{ z-index:10002; padding-top:78px;}
  28. </style>
  29. </head>
  30. <body onLoad="main()" id="0">
  31. <div style="text-align:center;">
  32. <canvas id="jsGameScreen">
  33. </canvas>
  34. </div>
  35. <script language=javascript>
  36. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  37. window.shareData = {
  38. "imgUrl": "http://game.ikongzhong.cn/icon/mnygl.png",
  39. "timeLineLink": "http://game.ikongzhong.cn/games/mnygl/",
  40. "tTitle": "木乃伊归来",
  41. "tContent": "木乃伊归来"
  42. };
  43. function goHome(){
  44. window.location=mebtnopenurl;
  45. }
  46. function clickMore(){
  47. if((window.location+"").indexOf("zf",1)>0){
  48. window.location = "http://game.ikongzhong.cn/";
  49. }
  50. else{
  51. goHome();
  52. }
  53. }
  54. function dp_share(){
  55. document.title ="传说中的木乃伊出现了,我竟然玩了"+myData.score+"关,世界上也没有几个人能通关哟!";
  56. document.getElementById("share").style.display="";
  57. window.shareData.tTitle = document.title;
  58. }
  59. function dp_Ranking(){
  60. window.location=mebtnopenurl;
  61. }
  62. function showAd(){
  63. }
  64. function hideAd(){
  65. }
  66. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  67. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  68. WeixinJSBridge.invoke('sendAppMessage', {
  69. "img_url": window.shareData.imgUrl,
  70. "link": window.shareData.timeLineLink,
  71. "desc": window.shareData.tContent,
  72. "title": window.shareData.tTitle
  73. }, onShareComplete);
  74. });
  75. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  76. WeixinJSBridge.invoke('shareTimeline', {
  77. "img_url": window.shareData.imgUrl,
  78. "img_width": "640",
  79. "img_height": "640",
  80. "link": window.shareData.timeLineLink,
  81. "desc": window.shareData.tContent,
  82. "title": window.shareData.tTitle
  83. }, onShareComplete);
  84. });
  85. }, false);
  86. </script>
  87. <div id=share style="display: none">
  88. <img width=100% src="share.png"
  89. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  90. ontouchstart="document.getElementById('share').style.display='none';" />
  91. </div>
  92. <div style="display: none;">
  93. <script type="text/javascript">
  94. var myData = { gameid: "mnygl" };
  95. //window.shareData.timeLineLink ="http://"+ parseInt(Math.random()*100000) +"."+ myData.gameid +".oixm.cn/gamecenter.html?gameid=" + myData.gameid + (localStorage.myuid ? "&uid=" + localStorage.myuid : "");
  96. function dp_submitScore(score){
  97. myData.score = parseInt(score);
  98. myData.scoreName ="成功闯了"+score+"关";
  99. if(score>0){
  100. if (confirm("你真吊炸天玩了"+score+"关,快把你的探险历程告诉小伙伴们吧?")){
  101. dp_share();
  102. }
  103. }
  104. }
  105. function onShareComplete(res) {
  106. if (localStorage.myuid && myData.score != undefined) {
  107. setTimeout(function(){
  108. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  109. // window.location = "http://wx.9g.com/rank/submit2.jsp?gameid=" + myData.gameid + "&uid=" + localStorage.myuid + "&score=" + myData.score + "&scorename=" + encodeURIComponent(myData.scoreName);
  110. }
  111. else {
  112. document.location.href = mebtnopenurl;
  113. }
  114. }, 500);
  115. }
  116. else {
  117. document.location.href = mebtnopenurl;
  118. }
  119. }
  120. </script>
  121. <div style="display: none;">
  122. </div>
  123. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script></body>
  124. </html>