基本信息
源码名称:html5端午节数粽子游戏代码
源码大小:0.47M
文件格式:.zip
开发语言:CSS
更新时间:2015-06-18
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍





<!DOCTYPE html>
<html>
<!--
。
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>数粽赢大礼过端午——盐龙网</title>
<script type="text/javascript">
var GID = "shuqian";
var SCORE_LIMIT = 600000;
var APP_LIST_URL = 'http://1251002861.cdn.myqcloud.com/1251002861/index.html';
</script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/createjs-2013.12.12.min.js"></script>
<script type="text/javascript" src="js/qipa_app.js"></script>
<script type="text/javascript" src="js/qipa_stage.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<style type="text/css">
html,body,canvas {
margin: 0px;
padding: 0px;
border:none;
text-align: center;
background-color: black;
}
canvas {
background-color: white;
}
</style>
</head>
<body>
<canvas id="stage">
您的浏览器不支持html5, 请换用支持html5的浏览器。
</canvas>
<script language=javascript>
var mebtnopenurl = 'http://www.ylw0813.com/default.html';
window.shareData = {
       "imgUrl": "http://game2.id87.com/games/sqsdscj/icon.png",
       "timeLineLink": "http://www.ylw0813.com/default.html",
       "tTitle": "数粽赢大礼过端午",
       "tContent": "数粽赢大礼过端午"
};

function goHome(){
window.location=mebtnopenurl;
}
function clickMore(){
if((window.location "").indexOf("zf",1)>0){
window.location = "http://www.ylw0813.com/default.html";
}
else{
goHome();
}
}
function dp_share(){
document.title ="我30秒内数了" myData.score "个粽子,手都快抽筋,你也来试试看!";
document.getElementById("share").style.display="";
window.shareData.tTitle = document.title;
}
function dp_Ranking(){
window.location=mebtnopenurl;
}

function showAd(){
}
function hideAd(){
}
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
   
   WeixinJSBridge.on('menu:share:appmessage', function(argv) {
       WeixinJSBridge.invoke('sendAppMessage', {
           "img_url": window.shareData.imgUrl,
           "link": window.shareData.timeLineLink,
           "desc": window.shareData.tContent,
           "title": window.shareData.tTitle
       }, onShareComplete);
   });

   WeixinJSBridge.on('menu:share:timeline', function(argv) {
       WeixinJSBridge.invoke('shareTimeline', {
           "img_url": window.shareData.imgUrl,
           "img_width": "640",
           "img_height": "640",
           "link": window.shareData.timeLineLink,
           "desc": window.shareData.tContent,
           "title": window.shareData.tTitle
       }, onShareComplete);
   });
}, false);
</script>
<!--<div id=share style="display: none">
<img width=100% src="http://game2.id87.com/games/sqsdscj/share.png"
style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
ontouchstart="document.getElementById('share').style.display='none';" />
</div>-->
<div style="display: none;">
<script type="text/javascript">
            var myData = { gameid: "sqsdscj" };
function dp_submitScore(score){
myData.score = score;
myData.scoreName = "数了" score "个粽子";
if(score>0){
if (confirm("我勒个去了,30秒你数了" score "个粽子!快通知一下小伙伴吧!")){
dp_share();
}
}
}
function onShareComplete(res) {
                if (localStorage.myuid && myData.score != undefined) {
                    setTimeout(function(){
                        if (confirm("要将成绩提交到数粽游戏排行榜吗?")) {
                            window.location ="http://www.ylw0813.com/default.html";
                        }
                        else {
                            document.location.href = mebtnopenurl;
                        }
                    }, 500);
                }
else {
       	document.location.href = mebtnopenurl;
}
       }
</script>
<div style="display: none;">
<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>
<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>
</div>
</body>
</html>