index.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>空中传媒</title>
  5. <meta charset="utf-8">
  6. <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
  7. <link rel="prerender" href="img/start_page.jpg">
  8. <link rel="prerender" href="img/game_bg.jpg">
  9. <link rel="prerender" href="img/score_bg.png">
  10. <link rel="prerender" href="img/lovers_0.png">
  11. <link rel="prerender" href="img/lovers_1.png">
  12. <link rel="prerender" href="img/lovers_2.png">
  13. <link rel="prerender" href="img/lovers_3.png">
  14. <link rel="prerender" href="img/blood.png">
  15. <link rel="prerender" href="img/single_0.png">
  16. <link rel="prerender" href="img/single_1.png">
  17. <link rel="prerender" href="img/single_2.png">
  18. <link rel="prerender" href="img/single_3.png">
  19. <link rel="prerender" href="img/time_over.png">
  20. <link rel="prerender" href="img/share.png">
  21. <link rel="prerender" href="audio/music.mp3">
  22. <script type="text/javascript" src="js/jquery.min.js"></script>
  23. <script type="text/javascript" src="js/createjs.js"></script>
  24. <script type="text/javascript">
  25. var isDesktop = navigator['userAgent'].match(/(ipad|iphone|ipod|android|windows phone)/i) ? false : true;
  26. var fontunit = isDesktop ? 20 : ((window.innerWidth>window.innerHeight?window.innerHeight:window.innerWidth)/320)*10;
  27. document.write('<style type="text/css">'+
  28. 'html,body {font-size:'+(fontunit<30?fontunit:'30')+'px;}'+
  29. (isDesktop?'#welcome,#GameLayerBG,#GameScoreLayer.SHADE{position: absolute;}':
  30. '#welcome,#GameTimeLayer,#GameLayerBG,#GameScoreLayer.SHADE{position:fixed;}')+
  31. '</style>');
  32. </script>
  33. <style type="text/css">
  34. body {font-family: "微软雅黑"; margin: 0; padding: 0;max-width:640px;margin:0 auto;position: relative;}
  35. @media screen and (min-width:640px)
  36. {
  37. body{font-size: 36px;}
  38. }
  39. @media screen and (min-width:540px) and (max-width:639px)
  40. {
  41. body{font-size: 32px;}
  42. }
  43. @media screen and (min-width:480px) and (max-width:539px)
  44. {
  45. body{font-size: 28px;}
  46. }
  47. @media screen and (min-width:320px) and (max-width:479px)
  48. {
  49. body{font-size: 20px;}
  50. }
  51. #ready-btn,.loading{height:12.5%;bottom:0;width:58%;left:22%;position: absolute;z-index: 5;color:#b67f76;display: box;display: -webkit-box;display: -moz-box;display: -ms-flexbox;box-align: center;box-pack: center;-webkit-box-align: center;-webkit-box-pack: center;-ms-flex-align: center;-ms-flex-pack: center;letter-spacing:6px;}
  52. .SHADE {top: 0; left:0; width:100%; height: 100%; bottom:0; z-index: 11;}
  53. .movegame{height:12.5%!important;bottom:0;width:25%;left:50%;font-size:20px;position: absolute;z-index: 5;color:#b67f76;display: box;display: -webkit-box;display: -moz-box;display: -ms-flexbox;box-align: center;box-pack: center;-webkit-box-align: center;-webkit-box-pack: center;-ms-flex-align: center;-ms-flex-pack: center;letter-spacing:6px;}
  54. #welcome {background:url(img/start_page.jpg?2) no-repeat;overflow: hidden;background-size: 100% 100%;}
  55. .welcome-bg {position:absolute;top:0;left:0;right:0;bottom:0;}
  56. #GameLayerBG {top:0;left:0;right:0;bottom:0;overflow:hidden;background:url(img/game_bg.jpg) no-repeat;background-size:100% 100%;}
  57. .GameLayer {position:absolute;bottom:0;left:5%;height:100%;width:91%;}
  58. .block{position:absolute; background-repeat: no-repeat; background-position: center bottom;background-size: auto 90%;background-image: none;}
  59. .t0{background-image:url(img/lovers_0.png);}
  60. .t1{background-image:url(img/lovers_1.png);}
  61. .t2{background-image:url(img/lovers_2.png);}
  62. .t3{background-image:url(img/lovers_3.png);}
  63. .s0{background-image:url(img/single_0.png);}
  64. .s1{background-image:url(img/single_1.png);}
  65. .s2{background-image:url(img/single_2.png);}
  66. .s3{background-image:url(img/single_3.png);}
  67. .tt0{ background-image:url(img/blood.png);background-size:100% auto;}
  68. @-ms-keyframes flash {
  69. 0% { opacity: 1; }
  70. 50% { opacity: 0; }
  71. 100% { opacity: 1; }
  72. }
  73. @-webkit-keyframes flash {
  74. 0% { opacity: 1; }
  75. 50% { opacity: 0; }
  76. 100% { opacity: 1; }
  77. }
  78. .flash {-webkit-animation: flash .2s 3;animation: flash .2s 3;}
  79. .bad {-webkit-animation: flash .2s 3;animation: flash .2s 3;background-image:url(img/blood.png);background-size:100% auto;}
  80. * {-webkit-tap-highlight-color: rgba(0,0,0,0);-ms-tap-highlight-color: rgba(0,0,0,0); tap-highlight-color: rgba(0,0,0,0); -ms-user-select: none;}
  81. #GameScoreLayer {background-position:center .5em; background-size: auto 4em; font-weight: bold; color:#fff; text-align: center;overflow: hidden;background:url(img/score_bg.png?2) no-repeat #191a1e;background-size:100% 100%;}
  82. #GameScoreLayer-btn{position: absolute;bottom:3%;height:20.5%;width:85%;left:7.5%;color:#b67f76;overflow: hidden;}
  83. .btn{display: box; display: -webkit-box; display: -moz-box; display: -ms-flexbox;box-align: center;box-pack: center; -webkit-box-align: center; -webkit-box-pack: center; -ms-flex-align:center; -ms-flex-pack:center;width:46%;height:100%;float:left;font-weight: normal;cursor: pointer;}
  84. .btn:nth-child(2){float:right;}
  85. #landscape {display: none;}
  86. #gameBody {position: relative; width:100%; margin: 0 auto; height: 100%;}
  87. #share-wx {background:#191a1e;position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;z-index: 10000;display: none;}
  88. #share-wx-img{width:100%;}
  89. #scoreTotal{max-width:640px;padding-left:4%;position:fixed;top:0;height:50px;width:100%;overflow: hidden;background:#000;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;display:none;}
  90. #titleBg{float:left;margin-right:20px;height:40px;z-index: 3;margin-top:5px;}
  91. #number,#GameTimeLayer{line-height:50px;font-size: 24px;color:#850101;height:100%;}
  92. #number{float:left;}
  93. #GameTimeLayer {text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff;position: absolute;right:85px;}
  94. #photo{height:100%;float:right;border: none;display:block;}
  95. #GameScoreLayer-text{color:#191a1e;text-align: center;font-size: 20px;font-weight: bold;padding:20px 5%;display:none;}
  96. #scoreLoading{height:232px;line-height: 232px;text-align: center;font-size: 28px;letter-spacing:6px;color:#b67f76;}
  97. #GameScoreLayer-text p{padding:0;margin:0;}
  98. #GameScoreLayer-text .text0{text-align: left;}
  99. #GameScoreLayer-text .text1{position: relative;width:100%;}
  100. #GameScoreLayer-text .text2{font-size: 20px;}
  101. #scoreAll{color:#b12813;font-size: 74px;}
  102. .positonP{position: absolute;right:0;bottom:16px;}
  103. #timeOver{width:60%;position: absolute;height:17.5%;left:20%;top:16%;display:none;background:url(img/time_over.png) no-repeat;background-size: 100% 100%}
  104. </style>
  105. </head>
  106. <body onLoad="init()">
  107. <script type="text/javascript">
  108. if (isDesktop)
  109. document.write('<div id="gameBody">');
  110. var body, blockSize, GameLayer = [], GameLayerBG, touchArea = [], GameTimeLayer;
  111. var transform, transitionDuration;
  112. function init (argument) {
  113. showWelcomeLayer();
  114. body = document.getElementById('gameBody') || document.body;
  115. body.style.height = window.innerHeight+'px';
  116. transform = typeof(body.style.webkitTransform) != 'undefined' ? 'webkitTransform' : (typeof(body.style.msTransform) != 'undefined'?'msTransform':'transform');
  117. transitionDuration = transform.replace(/ransform/g, 'ransitionDuration');
  118. GameTimeLayer = document.getElementById('GameTimeLayer');
  119. GameLayer.push( document.getElementById('GameLayer1') );
  120. GameLayer[0].children = GameLayer[0].querySelectorAll('div');
  121. GameLayer.push( document.getElementById( 'GameLayer2' ) );
  122. GameLayer[1].children = GameLayer[1].querySelectorAll('div');
  123. GameLayerBG = document.getElementById( 'GameLayerBG' );
  124. if( GameLayerBG.ontouchstart === null ){
  125. GameLayerBG.ontouchstart = gameTapEvent;
  126. }else{
  127. GameLayerBG.onmousedown = gameTapEvent;
  128. }
  129. gameInit();
  130. window.addEventListener('resize', refreshSize, false);
  131. var rtnMsg = "true";
  132. setTimeout(function(){
  133. if(rtnMsg){
  134. var btn = document.getElementById('ready-btn');
  135. btn.className = 'btn';
  136. btn.innerHTML = '点击开始游戏'
  137. btn.onclick = function(){
  138. closeWelcomeLayer();
  139. }
  140. }
  141. }, 500);
  142. }
  143. var refreshSizeTime;
  144. function refreshSize(){
  145. clearTimeout(refreshSizeTime);
  146. refreshSizeTime = setTimeout(_refreshSize, 200);
  147. }
  148. function _refreshSize(){
  149. countBlockSize();
  150. for( var i=0; i<GameLayer.length; i++ ){
  151. var box = GameLayer[i];
  152. for( var j=0; j<box.children.length; j++){
  153. var r = box.children[j],
  154. rstyle = r.style;
  155. rstyle.left = (j%4)*blockSize+'px';
  156. rstyle.bottom = Math.floor(j/4)*blockSize+'px';
  157. rstyle.width = blockSize+'px';
  158. rstyle.height = blockSize+'px';
  159. }
  160. }
  161. var f, a;
  162. if( GameLayer[0].y > GameLayer[1].y ){
  163. f = GameLayer[0];
  164. a = GameLayer[1];
  165. }else{
  166. f = GameLayer[1];
  167. a = GameLayer[0];
  168. }
  169. var y = (_gameBBListIndex%10)*blockSize;
  170. f.y = y;
  171. f.style[transform] = 'translate3D(0,'+f.y+'px,0)';
  172. a.y = -blockSize*Math.floor(f.children.length/4)+y;
  173. a.style[transform] = 'translate3D(0,'+a.y+'px,0)';
  174. }
  175. function countBlockSize(){
  176. blockSize = body.offsetWidth*0.91/4;
  177. body.style.height = window.innerHeight+'px';
  178. GameLayerBG.style.height = window.innerHeight+'px';
  179. touchArea[0] = window.innerHeight-blockSize*1;
  180. touchArea[1] = window.innerHeight-blockSize*2;
  181. }
  182. var _gameBBList = [], _gameBBListIndex = 0, _gameOver = false, _gameStart = false, _gameTime, _gameTimeNum, _gameScore;
  183. function gameInit(){
  184. createjs.Sound.registerSound( {src:"audio/music.mp3", id:"tap"} );
  185. gameRestart();
  186. }
  187. function gameRestart(){
  188. _gameBBList = [];
  189. _gameBBListIndex = 0;
  190. _gameScore = 0;
  191. _gameOver = false;
  192. _gameStart = false;
  193. _gameTimeNum = 2000;
  194. GameTimeLayer.innerHTML = creatTimeText(_gameTimeNum);
  195. countBlockSize();
  196. refreshGameLayer(GameLayer[0]);
  197. refreshGameLayer(GameLayer[1], 1);
  198. }
  199. function gameStart(){
  200. _gameStart = true;
  201. _gameTime = setInterval(gameTime, 10);
  202. }
  203. function gameOver(){
  204. _gameOver = true;
  205. clearInterval(_gameTime);
  206. setTimeout(function(){
  207. GameLayerBG.className = '';
  208. showGameScoreLayer();
  209. dp_submitScore(_gameScore);
  210. }, 1000);
  211. }
  212. function gameTime(){
  213. _gameTimeNum --;
  214. if( _gameTimeNum <= 0){
  215. GameTimeLayer.innerHTML = "0'00''";
  216. $('#timeOver').show();
  217. gameOver();
  218. GameLayerBG.className += ' flash';
  219. createjs.Sound.play("tap");
  220. }else{
  221. GameTimeLayer.innerHTML = creatTimeText(_gameTimeNum);
  222. }
  223. }
  224. function creatTimeText( n ){
  225. var text = (100000+n+'').substr(-4,4);
  226. text = '&nbsp;&nbsp;'+text.substr(0,2)+"'"+text.substr(2)+"''"
  227. return text;
  228. }
  229. var _ttreg = / t{1,2}(\d+)/, _clearttClsReg = / t{1,2}\d+| bad/,_clears1ClsReg = / s\d/;
  230. function refreshGameLayer( box, loop, offset ){
  231. var i = Math.floor(Math.random()*1234)%4+(loop?0:4);
  232. for( var j=0; j<box.children.length; j++){
  233. var r = box.children[j],
  234. rstyle = r.style;
  235. rstyle.left = (j%4)*blockSize+'px';
  236. rstyle.bottom = Math.floor(j/4)*blockSize+'px';
  237. rstyle.width = blockSize+'px';
  238. rstyle.height = blockSize+'px';
  239. r.className = r.className.replace(_clearttClsReg, '');
  240. r.className = r.className.replace(_clears1ClsReg, '');
  241. if( i == j ){
  242. _gameBBList.push( {cell:i%4, id:r.id} );
  243. var random=Math.floor((Math.random()*1234)%4);
  244. r.className += ' t'+random;
  245. var random1=Math.floor((Math.random()*1234)%4);
  246. if( loop ){
  247. var x=j%4;
  248. if(random1!=x)
  249. {
  250. var endNum=Math.floor(j/4)*4+random1;
  251. box.children[endNum].className = box.children[endNum].className+' s'+Math.floor((Math.random()*1234)%4);
  252. }
  253. }else{
  254. if(j>7){
  255. var x=j%4;
  256. if(random1!=x)
  257. {
  258. var endNum=Math.floor(j/4)*4+random1;
  259. box.children[endNum].className = box.children[endNum].className+' s'+Math.floor((Math.random()*1234)%4);
  260. }
  261. }
  262. }
  263. r.notEmpty = true;
  264. i = ( Math.floor(j/4)+1)*4+Math.floor((Math.random()*1234)%4);
  265. }else{
  266. r.notEmpty = false;
  267. }
  268. }
  269. if( loop ){
  270. box.style.webkitTransitionDuration = '0ms';
  271. box.style.display = 'none';
  272. box.y = -blockSize*(Math.floor(box.children.length/4)+(offset||0))*loop;
  273. setTimeout(function(){
  274. box.style[transform] = 'translate3D(0,'+box.y+'px,0)';
  275. setTimeout( function(){
  276. box.style.display = 'block';
  277. }, 100 );
  278. }, 200 );
  279. } else {
  280. box.y = 0;
  281. box.style[transform] = 'translate3D(0,'+box.y+'px,0)';
  282. }
  283. box.style[transitionDuration] = '150ms';
  284. }
  285. function gameLayerMoveNextRow(){
  286. for(var i=0; i<GameLayer.length; i++){
  287. var g = GameLayer[i];
  288. g.y += blockSize;
  289. if( g.y > blockSize*(Math.floor(g.children.length/4)) ){
  290. refreshGameLayer(g, 1, -1);
  291. }else{
  292. g.style[transform] = 'translate3D(0,'+parseInt(g.y)+'px,0)';
  293. }
  294. }
  295. }
  296. function gameTapEvent(e){
  297. if (_gameOver) {
  298. return false;
  299. }
  300. var tar = e.target;
  301. var y = e.clientY || e.targetTouches[0].clientY,
  302. x = (e.clientX || e.targetTouches[0].clientX)-body.offsetLeft,
  303. cha=body.offsetWidth*0.95;
  304. x=x+cha;
  305. p = _gameBBList[_gameBBListIndex];
  306. if ( y > touchArea[0] || y < touchArea[1]) {
  307. return false;
  308. }
  309. if( (p.id==tar.id&&tar.notEmpty) || (p.cell==0&&x<blockSize+cha) || (p.cell==1&&x>blockSize+cha&&x<2*blockSize+cha) || (p.cell==2&&x>2*blockSize+cha&&x<3*blockSize+cha) || (p.cell==3&&x>3*blockSize+cha) ){
  310. if( !_gameStart ){
  311. gameStart();
  312. }
  313. createjs.Sound.play("tap");
  314. tar = document.getElementById(p.id);
  315. tar.className = tar.className.replace(_ttreg, ' tt0');
  316. _gameBBListIndex++;
  317. _gameScore ++;
  318. $('#number span').html(_gameScore);
  319. gameLayerMoveNextRow();
  320. }else if( _gameStart && !tar.notEmpty && / s\d/.test(tar.className)){
  321. createjs.Sound.play("tap");
  322. tar.className += ' bad';
  323. gameOver();
  324. }
  325. return false;
  326. }
  327. function createGameLayer(){
  328. var html = '<div id="GameLayerBG">';
  329. for(var i=1; i<=2; i++){
  330. var id = 'GameLayer'+i;
  331. html += '<div id="'+id+'" class="GameLayer">';
  332. for(var j=0; j<10; j++ ){
  333. for(var k=0; k<4; k++){
  334. html += '<div id="'+id+'-'+(k+j*4)+'" num="'+(k+j*4)+'" class="block"></div>';
  335. }
  336. }
  337. html += '</div>';
  338. }
  339. html += '</div>';
  340. return html;
  341. }
  342. function closeWelcomeLayer(){
  343. var l = document.getElementById('welcome');
  344. l.style.display = 'none';
  345. $('#scoreTotal').show();
  346. }
  347. function showWelcomeLayer(){
  348. var l = document.getElementById('welcome');
  349. l.style.display = 'block';
  350. }
  351. function showGameScoreLayer(){
  352. $('#scoreLoading').hide();
  353. $('#GameScoreLayer-text').html(shareText(0,_gameScore)).show();
  354. var l = document.getElementById('GameScoreLayer');
  355. l.style.display = 'block';
  356. }
  357. function hideGameScoreLayer(){
  358. var l = document.getElementById('GameScoreLayer');
  359. l.style.display = 'none';
  360. $('#timeOver').hide();
  361. $('#score').html('0');
  362. $('#scoreLoading').show();
  363. $('#GameScoreLayer-text').html('').hide();
  364. }
  365. function replayBtn(){
  366. gameRestart();
  367. hideGameScoreLayer();
  368. }
  369. function backBtn(){
  370. gameRestart();
  371. hideGameScoreLayer();
  372. showWelcomeLayer();
  373. }
  374. function shareText( data,score){
  375. return "<p class='text0'>人艰不拆,放开小房子!你</p><p class='text1'><span id='scoreAll'>"+score+"</span><span class='positonP'>次将小房子从柯少身边带走。要不要让好友也来试试?</span></p>";
  376. }
  377. function toStr(obj) {
  378. if ( typeof obj == 'object' ) {
  379. return JSON.stringify(obj);
  380. } else {
  381. return obj;
  382. }
  383. return '';
  384. }
  385. document.write(createGameLayer());
  386. </script>
  387. <div id="GameScoreLayer" class="BBOX SHADE" style="display:none;">
  388. <div id="GameScoreLayer-text"></div>
  389. <div id='scoreLoading'>加载中...</div>
  390. <div id="GameScoreLayer-btn">
  391. <div class="btn" onClick="replayBtn()">再来一次</div>
  392. <div class="btn" onClick="clickMore();">更多游戏</div>
  393. </div>
  394. </div>
  395. <div id='scoreTotal'><img src='img/title_bg.png' id='titleBg'><span id='number'>=&nbsp;<span id='score'>0</span></span><img src='img/photo_bg.png' id='photo'><div id="GameTimeLayer"></div></div>
  396. <div id="welcome" class="SHADE BOX-M">
  397. <div class="welcome-bg FILL"></div>
  398. <div id="ready-btn" class="btn loading">加载中...</div>
  399. <!-- <div onclick="goHome();" class="btn movegame">更多游戏</div> -->
  400. </div>
  401. <div id='timeOver'></div>
  402. <div id="share-wx"><img src="img/share.png" id="share-wx-img"></div>
  403. <script type="text/javascript">
  404. if (isDesktop)
  405. document.write('</div>');
  406. </script>
  407. <script language=javascript>
  408. var mebtnopenurl = 'http://game.ikongzhong.cn';
  409. window.shareData = {
  410. "imgUrl": "http://game.ikongzhong.cn/icon/fkfzm.png",
  411. "timeLineLink": "http://game.ikongzhong.cn/games/fkfzm/index.html",
  412. "tTitle": "放开房祖名-空中传媒",
  413. "tContent": "放开房祖名-空中传媒"
  414. };
  415. function goHome(){
  416. window.location=mebtnopenurl;
  417. }
  418. function clickMore(){
  419. // if((window.location+"").indexOf("zf",1)>0){
  420. // window.location = "http://game.ikongzhong.cn/games/fkfzm";
  421. // }
  422. // else{
  423. // goHome();
  424. // }
  425. if (Math.random() > 0.5) {
  426. window.location = "http://game.ikongzhong.cn/games/fkfzm";
  427. }
  428. else {
  429. goHome();
  430. }
  431. }
  432. function dp_share(){
  433. document.title ="人艰不拆,放开小房子!我"+myData.score+"次将小房子从柯少身边带走。你也来试试?";
  434. document.getElementById("share").style.display="";
  435. window.shareData.tTitle = document.title;
  436. }
  437. function dp_Ranking(){
  438. window.location=mebtnopenurl;
  439. }
  440. function showAd(){
  441. }
  442. function hideAd(){
  443. }
  444. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  445. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  446. WeixinJSBridge.invoke('sendAppMessage', {
  447. "img_url": window.shareData.imgUrl,
  448. "link": window.shareData.timeLineLink,
  449. "desc": window.shareData.tContent,
  450. "title": window.shareData.tTitle
  451. }, onShareComplete);
  452. });
  453. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  454. WeixinJSBridge.invoke('shareTimeline', {
  455. "img_url": window.shareData.imgUrl,
  456. "img_width": "640",
  457. "img_height": "640",
  458. "link": window.shareData.timeLineLink,
  459. "desc": window.shareData.tContent,
  460. "title": window.shareData.tTitle
  461. }, onShareComplete);
  462. });
  463. }, false);
  464. </script>
  465. <div id=share style="display: none">
  466. <img width=100% src="http://game.ikongzhong.cn/games/fkfzm/share.png"
  467. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  468. ontouchstart="document.getElementById('share').style.display='none';" />
  469. </div>
  470. <div style="display: none;">
  471. <script type="text/javascript">
  472. var myData = { gameid: "fkfzm" };
  473. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  474. window.shareData.timeLineLink = "http://game.ikongzhong.cn/games/fkfzm";
  475. function dp_submitScore(score){
  476. myData.score = score;
  477. myData.scoreName = "带走房祖名"+score+"次";
  478. if(score>1){
  479. if (confirm("想从柯少身边带走小房子绝非易事,可你竟然"+score+"次做到了,快让朋友看看的你才能!")){
  480. dp_share();
  481. }
  482. }
  483. }
  484. function onShareComplete(res) {
  485. if (localStorage.myuid && myData.score != undefined) {
  486. setTimeout(function(){
  487. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  488. window.location = "http://game.ikongzhong.cn/";
  489. }
  490. else {
  491. document.location.href = mebtnopenurl;
  492. }
  493. }, 500);
  494. }
  495. else {
  496. document.location.href = mebtnopenurl;
  497. }
  498. }
  499. </script>
  500. <div style="display: none;">
  501. <script type="text/javascript">var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ae524064813b8dc07ece5ce724a7b04' type='text/javascript'%3E%3C/script%3E"));</script>
  502. <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_2947366'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s5.cnzz.com/stat.php%3Fid%3D2947366' type='text/javascript'%3E%3C/script%3E"));</script>
  503. </div>
  504. </body>
  505. </html>