-
关注Ta
-
- 注册时间 2011-09-09
- 最后登录 2015-07-14
-
- 发帖161
- 在线210小时
- 精华0
- DB17
- 威望205
- 保证金0
- 桃子0
- 鲜花0
- 鸡蛋0
-
访问TA的空间加好友用道具
|
穿越火线源代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>翔龙贺新春 - 穿越火线官方网站 - 腾讯游戏</title> <meta name="robots" content="all" /> <meta name="author" content="Tencent-CP" /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <!-- 设计:cp | 重构:cp | 创建:2013/01/14 | 更新:| 团队博客:http://tgideas.qq.com/ --> <style type="text/css"> *html{background-image:url(about:blank);background-attachment:fixed;} /* gift */ .giftbagwrap{width: 550px; color:#5d2915; padding:0px 22px; background: #d2c6a4 url(http://ossweb-img.qq.com/images/cf/act/a20110721haier/close.png) no-repeat 100% 0px; position: relative; display: none} .giftbagwrap h3{border-bottom: 1px solid #e6dcbf;} .giftbagwrap h3 em{border-bottom: 1px solid #b1a481;display: block; padding:10px 0px; text-align: center; height: 30px; line-height: 30px; font-size: 16px;} .giftbagwrap .tips{border-top: 1px solid #b1a481; margin-top: 10px;} .giftbagwrap .tips p{border-top: 1px solid #e6dcbf;} .gb-list{padding: 10px 20px 0px;} .giftbagwrap p{ color:#cf4400; padding:10px 0px;text-align: center;} .giftbagwrap table{width: 100%;table-layout:fixed;} .giftbagwrap .close{width: 25px; text-indent:-9000em; outline:none;height: 25px;float: right;cursor:pointer} .giftbagwrap th,.giftbagwrap td{border: 1px solid #b89976; text-align: center; padding:5px 0px} .giftbagwrap caption{font-weight: bold;font-size: 14px; text-decoration: underline} .giftbagwrap td a{color:#000; text-decoration: underline; padding:0px 5px;} .giftbagwrap .close{position: absolute; right:0px; top:0px; width: 40px; height: 35px} #getGiftPageContent a{color:#CF4400} /* noticebox */ .noticebox{width: 514px; height: 205px; background: url(http://ossweb-img.qq.com/images/amsNotice/l_tips_bg.png) no-repeat 0px 0px; text-align: center; color:#3d3232; display: none} .noticebox em{color:#843e18; font-weight: bold;font-style: normal; font-size:16px;display: block; text-align: center; padding-top: 20px;} .noticebox p{font-size: 12px;text-align: center; padding-top: 30px;} .noticebox .close{margin: 0px auto;display: block; width: 112px; height: 36px;text-indent: -9000em; outline:none;background: url(http://ossweb-img.qq.com/images/amsNotice/l_tips_bg.png) no-repeat 0px -205px;} .noticewrap{padding-top: 20px; height:125px; overflow: hidden;} /*relaywb*/ .relaywb,.relaysuccess{width: 514px; height: 205px; background: url(http://ossweb-img.qq.com/images/cf/act/common/l_tips_bg.png) no-repeat 0px 0px; text-align: center; color:#3d3232;display: none} .relaywb em{color:#843e18;font-weight: normal} .relaytxt, .relaysuccess p{height: 92px; padding-top: 40px; } .relaysuccess p{line-height: 55px; color:#3D3232} .relaybtnbox{padding-left: 115px;} .relaybtnbox a{display: block; width: 112px; height: 36px; float: left; text-indent: -9000em; outline:none} .relaybtn{margin-right: 40px; background: url(http://ossweb-img.qq.com/images/cf/act/common/l_tips_bg.png) no-repeat -112px -205px;} .relaywb .close, .relaysuccess .close{background: url(http://ossweb-img.qq.com/images/cf/act/common/l_tips_bg.png) no-repeat 0px -205px;} .relaysuccess .close{margin: 0px auto;display: block; width: 112px; height: 36px;text-indent: -9000em; outline:none}
.defaultContent {background: url(http://game.qq.com/comm-htdocs/js/newjs/images/bg.png) repeat-x; width:400px; padding:10px; font-size:10pt;} .defaultContent .submitBtn{width: 120px;height: 41px;background: url(http://ossweb-img.qq.com/images/cf/act/a20100610wcg/pIsubmitBtn.jpg) no-repeat 0px 0px;border:none;cursor:pointer} .defaultContent tr {height: 32px;} .defaultContent td {font-size: 12px;}
/* reset */ body, h1, h2, h3, h4, h5, h6, hr, p, pre, dl, dt, dd, ul, ol, li, th, td, form, fieldset, legend, button, input, textarea { margin:0; padding:0;} h1, h2, h3, h4, h5, h6 { font-size:100%;} .hid{text-indent:-9999px;font-size:0px;overflow:hidden;width:0px;height:0px;display:block} ul, ol { list-style-type:none;} a { text-decoration:none;} a:hover { text-decoration:none;} fieldset, img { border:0;} input,select,form,img {vertical-align:middle;} button{ cursor:pointer;} /*page*/ body{padding-top:42px;min-width:1000px; font: 12px/150% tahoma,'\5b8b\4f53',sans-serif;} .wrap_t{min-width:1000px;margin:0 auto;overflow:hidden;background:#370707 url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/wrap_top.jpg) no-repeat 50% 0; } .wrap_b{min-width:1000px;margin:0 auto;overflow:hidden;background:#370707 url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/wrap_bottom.jpg) no-repeat 50% 0; } .con1,.con2,.con3,.con4,.con5{width:1000px;margin:0 auto;overflow:hidden;} .con1{background:url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/bg1.jpg) no-repeat;height:544px;position:relative} .con2{background:url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/bg2.jpg) no-repeat;height:400px} .con3{background:url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/bg3.jpg) no-repeat;height:443px} .con4{background:url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/bg4.jpg) no-repeat;height:738px} .con5{background:url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/bg5.jpg) no-repeat;height:610px} .sprites{background:url(http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/sprites.png) no-repeat;} /*top link*/ .top_link{padding:2px 40px 0 0;height:33px;color:#beaaa3;font-family:宋体;font-size:12px} .top_link a{display:block;width:90px;height:25px;float:left;text-indent:-9999px;overflow:hidden} .top_link ul{float:right;} .top_link li{float:left;display:inline;margin-left:22px} .weibo,.qzone{width:16px;height:16px;display:block;overflow:hidden;text-indent:-9999px;float:left} .weibo{background-position:-27px 0;display:inline;} .qzone{background-position:0 0} .share_sp{float:left;margin-left:10px;display:inline} .act_time1,.act_time2{height:30px;font-size:18px;color:#fff;font-family:"Microsoft Yahei","微软雅黑";text-indent:15px;} .act_time1{width:323px;margin:308px 0 0 195px;} .act_time2{margin:10px 0 0 195px;} .login_detail{margin:35px 0 0 80px;color:#663300;} .newsanc{height:75px;width:490px;text-align:right}.newsanc a{font:bold 13px/25px "Microsoft Yahei","微软雅黑";color:#fff;background:#860000;padding:0 10px} .unlogin a{color:#000} .logined a{color:#666666} .logined .a_link{color:#993300;font-weight:bold} .p_txt{color:#774515;font-size:16px;font-family:"Microsoft Yahei","微软雅黑";margin:87px 0 0 159px;} .img_hb{float:left;margin:23px 40px 0 169px;} .btn_openhb,.btn_hb_con{display:block;text-indent:-9999px;overflow:hidden;} .btn_qqvip,.btn_cfvip{float:left;display:inline;margin-top:60px;display:inline;}
.btn_redbag{ width:264px; height:69px; background-position:0 -102px ; display:block;} .btn_openhb{ width:264px; height:69px;background-position:0 -171px;margin:0px 0 0 38px;} .p_vipbtn{overflow:hidden;height:75px; } .btn_hb_con{width:149px;height:40px;background-position:-224px 0;margin-top:13px;} .left_prop{float:left;display:inline;margin:90px 0 0 150px;} .btn_lq{display:block;text-indent:-9999px;overflow:hidden;background-position:-199px -40px;width:159px;height:57px;margin:18px 0 0 38px;} .right_carouse{margin:110px 0 0 35px;float:left} .right_carouse h3{color:#993300;font-family:宋体;font-size:14px;} .t_txt{width:286px;height:26px;margin-top:9px;} .t_txt span{float:left;display:inline;color:#a56138;display:block;height:26px;} .cols1{width:187px;text-indent:25px;} .carouselcontent{height:170px;padding-left:12px;} .carouselcontent span{display:inline-block;vertical-align:middle;width:140px;} .carouselcontent em{display:inline-block;vertical-align:middle;width:110px;text-align:center;font-style:normal} .carouselcontent li{border-bottom:1px dashed #6b675e;width:262px;font-family:宋体;font-size:12px;color:#663300;padding:4px 0} .ul_prop{margin:65px 0 0 47px;font-family:宋体;font-size:12px;color:#663300} .ul_prop img{margin-bottom:5px;} .ul_prop li{float:left;width:170px;height:163px;display:inline;margin:0 14px 0 0;text-align:center;} .rule{list-style-type:decimal;overflow:hidden;color:#663300;font-family:宋体;font-size:12px;margin:60px 0 0 70px;padding-left:25px;line-height:24px} .logo_a{width:160px;height:40px;position:absolute;text-indent:-9999px;overflow:hidden;top:5px;left:35px;}
.func_btn img{vertical-align: middle;} .func_btn{padding:10px 0px 10px 5px; overflow: hidden;} /*footer*/ #footer_ied{text-align:center;color:#865656;padding-bottom:40px;line-height:22px;margin-top:-130px} #footer_ied a{color:#865656} .floatbox{bottom:50px; position: fixed; right: 10px; z-index:999;_position:absolute;_bottom:auto;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));} </style> </head> <body> <h1 class="hid"></h1> <div class="wrap_t"> <div class="con1"> <a href="http://cf.qq.com/main.shtml" class="logo_a" target="_blank">穿越火线LOGO</a> <div class="top_link"> <ul> <li> <a href="http://cf.qq.com/web201105/download.shtml" target="_blank">下载游戏</a> </li> <li> <a href="http://cf.qq.com/brand_2012/" target="_blank">CF品牌战</a> </li> <li> <a href="http://cf.qq.com/main.shtml" target="_blank">CF官网</a> </li> </ul> </div> <p class="act_time1">2013年2月4日-2013年2月26日</p> <p class="act_time2">2013年2月5日-2013年2月27日 11:30-23:59</p> <div class="login_detail"> <p class="newsanc"><a href="http://cf.qq.com/webplat/info/news_version3/125/860/862/m640/201302/192015.shtml" title="“翔龙贺新春”活动最新补偿说明" target="_blank">公告:“翔龙贺新春”活动最新补偿说明</a></p> <div id="unlogin" class="unlogin"> 您好,请【<a id="dologin" href="javascript:void(0)">登录</a>】<!--href="javascript:LoginManager.login();"--> </div> <div id="logined" style="display:none;" class="logined"> <p> 欢迎您,<span id='login_qq_span'></span>【<a id="dologout" href="javascript:void(0)">注销</a>】 <span id="spanNotBind"> 请先【<a href="javascript:sign_2314.bind_area()" class="a_link">选择大区</a>】 </span> <span id="spanBind" style="display:none"> <span id="area_info" class="a_link"></span>【<a href="javascript:sign_2314.bind_area()" class="a_link">更改大区</a>】 </span> <span> 【<a href="javascript:void(0)" onclick="myGiftList_4165.show({'showContentId' : 'myGiftBag', 'coverColor' : '#2e2e2e','activityId':'4165|4166|4177|4221'});" class="a_link">我的礼包</a>】 【<a id="show_yesjushu" href="javascript:void(0)" title="查询昨日所有单大区中的最高完成局数" class="a_link">查询昨日局数</a>】 【<a id="show_days" href="javascript:void(0)" title="查询活动期间完成任务的总天数" class="a_link">查询完成任务天数</a>】 </span> </p> </div> </div> </div> <div class="con2"> <h3 class="hid">每天完成6局游戏,次日获得新春红包一个 </h3> <p class="p_txt">* CFVIP和蓝钻玩家每天完成游戏任务可额外获得新春红包一个</p> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_01.jpg" class="img_hb" width="196" height="237" alt="" /> <p class="func_btn"> <a href="http://pay.qq.com/cf/index.shtml?aid=ied.cf" target="_blank"><img src="http://ossweb-img.qq.com/images/cf/act/common/cfvip01.png" width="99" height="23" alt="开通CFVIP" /></a> <a target="_blank" href="http://pay.qq.com/qqgame/index.shtml?aid=VIP.CF.chunjie&ADTAG=VIP.CF.chunjie"><img src="http://ossweb-img.qq.com/images/cf/act/common/lz.png" alt="开通蓝钻" width="78" height="20" /></a> <a href="javascript:getGift_withoutarea(4221);" title="CFVIP或蓝钻玩家点击打开红包"><img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/r-btn.jpg" width="82" height="24" alt="CFVIP或蓝钻玩家点击打开红包" /></a> </p> <p class="p_vipbtn"> <a href="javascript:getGift_withoutarea(4177);" class="sprites btn_redbag" title="领取人人有份红包"></a> </p> <a href="javascript:getGift_withoutarea(4165);" title="点击打开红包" class="sprites btn_openhb">领取游戏6局红包</a> <a href="#a" title="查看红包内容" class="sprites btn_hb_con">查看红包内容</a> </div> </div> <!--wrap end--> <div class="wrap_b"> <div class="con3"> <h3 class="hid">每累计5天完成任务可直接获得幻影道具卡1张</h3> <div class="left_prop"> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_02.jpg" width="233" height="142" alt="" /> <a href="javascript:getGift_witharea(4166,11619);" title="领取" class="sprites btn_lq">领取</a> </div> <div class="right_carouse"> <h3>最新获奖玩家</h3> <p class="t_txt"> <span class="cols1">qq号</span> <span class="cols2">获得奖励</span> </p> <ul class="carouselcontent" id="broadcastContent"></ul> <script type="text/html" id="broadcastTemplate"> {for oneBroadcast in BroadcastList} <li> <span>${oneBroadcast.uin}</span> <em>${oneBroadcast.packageName}</em> </li> {/for} </script> </div> </div> <div class="con4"> <h3 class="hid">红包内容</h3><a class="hid" name='a' id="a"> </a> <p class="hid">打开红包,将会随机获得以下任意奖励</p> <ul class="ul_prop"> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_03.jpg" width="170" height="130" alt="AK47-火麒麟(限量5000把)" /> <span>AK47-火麒麟(限量5000把)</span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_04.jpg" width="170" height="130" alt="黄金M4A1(7天) " /> <span>黄金M4A1(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_05.jpg" width="170" height="130" alt="黄金AWM(7天)" /> <span>黄金AWM(7天)</span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_06.jpg" width="170" height="130" alt="M14EBR-圣诞(30天)" /> <span>M14EBR-圣诞(30天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_07.jpg" width="170" height="130" alt="Barrett-翔龙(7天) " /> <span>Barrett-翔龙(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_08.jpg" width="170" height="130" alt="M4A1-X-翔龙(7天)" /> <span>M4A1-X-翔龙(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_09.jpg" width="170" height="130" alt="幻影道具卡(1张) " /> <span>幻影道具卡(1张) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_10.jpg" width="170" height="130" alt="AK47-野战军(7天) " /> <span>AK47-野战军(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_11.jpg" width="170" height="130" alt="M4A1-隐袭(7天) " /> <span>M4A1-隐袭(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_12.jpg" width="170" height="130" alt="军用指虎(7天) " /> <span>军用指虎(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_13.jpg" width="170" height="130" alt="军用毛瑟手木仓(7天) " /> <span>军用毛瑟手木仓(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_14.jpg" width="170" height="130" alt="M16-S(7天) " /> <span>M16-S(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_15.jpg" width="170" height="130" alt="鞭炮手雷(7天) " /> <span>鞭炮手雷(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_16.jpg" width="170" height="130" alt="红龙 SCAR Light(7天) " /> <span>红龙 SCAR Light(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_17.jpg" width="170" height="130" alt="斯泰尔 AUG A3(7天)" /> <span>斯泰尔 AUG A3(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_18.jpg" width="170" height="130" alt="M60E3(7天) " /> <span>M60E3(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_19.jpg" width="170" height="130" alt="MK5-T(7天) " /> <span>MK5-T(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_20.jpg" width="170" height="130" alt="M12S(7天) " /> <span>M12S(7天) </span> </li> <li> <img src="http://ossweb-img.qq.com/images/chanpin/cf/public/a20130124xlhxc/img_21.jpg" width="170" height="130" alt="KSG-15(7天)" /> <span>KSG-15(7天)</span> </li> </ul> </div> <div class="con5"> <h3 class="hid">活动规则</h3> <ol class="rule"> <li>首先绑定游戏大区。</li> <li>每个参与活动的玩家都可领取新年红包一个,打开新年红包有惊喜哦,火麒麟有没有?!</li> <li>活动期间,每天在任何一个单大区完成6局游戏即可获得新春红包一个;</li> <li>玩家打开新春红包可以100%获得道具,并有一定几率得到极品道具,每天每个QQ号限得到一个红包;</li> <li>每累计5天完成任务可直接获得一张幻影道具卡;</li> <li>中途退出游戏,大厅或房间内挂机以及挑战模式不计游戏局数,中途加入游戏则计算;</li> <li>CFVIP和蓝钻玩家每天完成游戏任务可额外新春红包一个。</li> </ol> </div> </div> <!--main end-->
<!-- 我的礼包 --> <div class="giftbagwrap" id="myGiftBag"> <a onclick="FloaterManager.close();" title="关闭" class="close">关闭</a> <h3><em>我的礼包</em></h3> <div class="gb-list"> <table cellspacing="0" > <thead> <tr> <th>领取时间</th> <th>领取大区</th> <th>领取礼包</th> </tr> </thead> <tbody id="getGiftContent"> </tbody> <tfoot> <tr> <td id="getGiftPageContent" align="right" colspan="3"></td> </tr> </tfoot> </table> </div> <div class="tips"><p>温馨提示:虚拟道具奖品将在24小时内发到您的游戏内仓库,请耐心等候,谢谢您的理解与支持!</p></div> </div> <script type="text/html" id="getGiftTemplate"> {if MyGiftListObject.retCode!='0'} <tr> <td colspan="3" align="center">${MyGiftListObject.retInfo}</td> </tr> {else} {for giftInfo in MyGiftListObject.myGiftList} <tr> <td>${giftInfo.getTime}</td> <td>${giftInfo.areaName}</td> <td> {if giftInfo.sCdkey} ${giftInfo.sCdkey} {else} ${giftInfo.packageName} {/if} </td> </tr> {forelse} <tr> <td colspan="3" align="center">您尚未获得任何礼包</td> </tr> {/for} {/if} </script>
<!-- 查询昨日完成局数 弹出层 --> <div id="yesjushuBox" class="noticebox" style="display:none"> <div class="noticewrap"> <span id="yesjushu_info">查询昨日完成局数</span> <ul> <li id="li_yesjushu"></li> </ul> </div> <a id="show_yesjushu_close" title="关闭" class="close">关闭</a> </div>
<!-- 查询活动期间完成任务天数 弹出层 --> <div id="daysBox" class="noticebox" style="display:none"> <div class="noticewrap"> <span id="days_info">查询完成任务天数</span> <ul> <li id="li_days"></li> <li id="li_lotterynum"></li> </ul> </div> <a id="show_days_close" title="关闭" class="close">关闭</a> </div>
<!-- 转发微博 弹出层 --> <div id='relayBox1' class="relaywb"> <div class="relaytxt" > <p>恭喜您获得 <em id="gift_name"></em>,请您注意查收!</em></p> <p>转发微博,与朋友分享喜悦吧!</p> </div> <div class="relaybtnbox"> <a id="weibo" title="立即转播" class="relaybtn">立即转播</a> <a title="关闭" id="msg1_close" class="close" >关闭</a> </div> </div>
<div id="relayBox2" class="relaysuccess" style="display:none"> <p id="msg_ok">感谢您的参与!</p> <a id="msg2_close" title="关闭" class="close" >关闭</a> </div> <div class="floatbox"> <a href="http://cf.qq.com/act/a20130201newyear/" target="_blank"><img src="http://ossweb-img.qq.com/images/cf/act/a20130125tzjq/pop_bg.jpg" width="129" height="68" alt="" /></a> </div> <script src="http://ossweb-img.qq.com/images/js/milo/milo.js"></script> <script src="http://ossweb-img.qq.com/images/js/jquery/jquery-1.5.min.js"></script>
<script src="http://cf.qq.com/comm-htdocs/js/game_area/cf_server_select.js"></script>
<script type="text/javascript" src="http://ossweb-img.qq.com/images/js/comm/commShare.js"></script> <script type="text/javascript"> var share = new CommShare({ id: 828//积分转发微博 }); </script>
<script src="http://apps.game.qq.com/CommArticle/action/2314/system/js/bind_area.js"></script> <script>
//初始化 var sign_2314 = new AMS.Sign({ "can_modify" : true, //是否可以更改报名信息 "action_id" : 2314, //报名活动编号 "service_type": 'cf' });
//提示文字 sign_2314.sign_out_msg = { "sys_error" : '很抱歉,系统繁忙,请稍后再试!', "unbind_succ" : '取消大区选择成功!' , "reg_succ" : '您已经成功选择大区!', "modify_succ" : '修改大区选择成功!' , "can_not_change" : '您已选择大区,无需重复选择!' };
//展示:未绑定的展示修改这里 sign_2314.show_unbind_info = function() { //显示选择 if(document.getElementById("spanNotBind")) { document.getElementById("spanNotBind").style.display = ""; } if(document.getElementById("spanBind")) { document.getElementById("spanBind").style.display = "none"; } return; } //展示:绑定后的展示修改这里 sign_2314.show_bind_info = function(user_reginfo_obj) { if(document.getElementById("spanNotBind")!=null) { document.getElementById("spanNotBind").style.display = "none"; } if(document.getElementById("spanBind")!=null) { document.getElementById("spanBind").style.display = ""; } if(document.getElementById("area_info")!=null) { document.getElementById("area_info").innerHTML = user_reginfo_obj.FareaName; SAVE_DATA.iArea = user_reginfo_obj.Farea;//将报名返回的大区号记录在公共变量中 milo.cookie.set("dragonspring_areaid_"+SAVE_DATA.iUin, user_reginfo_obj.Farea, 60*60, "cf.qq.com",'/',false);//cookie已绑定大区号 milo.cookie.set("dragonspring_areaname_"+SAVE_DATA.iUin, user_reginfo_obj.FareaName, 60*60,"cf.qq.com",'/',false);//cookie已绑定大区名 //alert('for test only:cookie记录了后台返回的报名大区号 '+SAVE_DATA.iArea); } return; }
//查询用户信息 //sign_2314.get_sign_info();
//提交:提交前的检查及赋值 sign_2314.prec_heck = function() { //页面合法性检查 //@to do check
//赋值(这里对应表描述中“页面名称”,如果增加输入项,表中没有的话,需要添加) this.set_value( { "user_area" : this.role_object.submitData.areaid, "user_roleId" : this.role_object.submitData.roleid, "user_roleName" : encodeURIComponent(this.role_object.submitData.rolename), "user_areaName" : this.role_object.submitData.areaname, "user_roleLevel" : this.role_object.submitData.rolelevel, "user_checkparam" : this.role_object.submitData.checkparam, "user_md5str" : this.role_object.submitData.md5str } ); return true; }
//提交:报名成功的回调 function post_call_back(obj) { //obj 结构 {ret:0,msg:'',action_id:'2314'} //这里用于区别处理不同的活动 if(obj.action_id == 2314) { //sign succ if(obj.ret==0) { if(sign_2314.sign_info.ret == null || sign_2314.sign_info.ret != 0) { //如果未绑定,提示绑定成功 alert(sign_2314.sign_out_msg["reg_succ"]); } else { //如果已绑定,提示修改成功 alert(sign_2314.sign_out_msg["modify_succ"]); } //刷新报名信息 sign_2314.get_sign_info(); } else if(obj.ret=="-2") { LoginManager.login(); } else { alert(obj.msg); } //避免刷新再次提交 sign_2314.clean_post(); } }
function getCookieArea() { var cookie_areaid = milo.cookie.get("dragonspring_areaid_"+SAVE_DATA.iUin,''); var cookie_areaName = milo.cookie.get("dragonspring_areaname_"+SAVE_DATA.iUin,''); if( cookie_areaid != null && cookie_areaName != null && cookie_areaid != "" && cookie_areaName != "") { if(typeof(g("spanNotBind"))!="undefined") { g("spanNotBind").style.display = "none"; }
if(typeof(g("spanBind"))!="undefined") { g("spanBind").style.display = ""; }
if(typeof(g("area_info"))!="undefined") { g("area_info").innerHTML = cookie_areaName; SAVE_DATA.iArea = cookie_areaid;//将cookie大区号记录在公共变量中 } //alert('for test only:从cookie取到了已报名大区号'+SAVE_DATA.iArea); return; } else { //alert('for test only:准备从后台获取已报名大区信息'); sign_2314.get_sign_info(); } } </script>
<script src="http://ossweb-img.qq.com/images/js/comm/showDialog.min.js"></script> <script type="text/javascript" src="http://ossweb-img.qq.com/images/js/login/loginmanagerv2_min.js" charset="gb2312"></script>
<script type="text/javascript" src="http://gameact.qq.com/act/lottery_ms/4165/js/lotterymanager.js"></script> <script type="text/javascript" src="http://gameact.qq.com/act/lottery_ms/4165/js/lotteryconfig.js"></script> <script type="text/javascript" src="http://gameact.qq.com/act/lottery_ms/4166/js/lotteryconfig.js"></script> <script type="text/javascript" src="http://gameact.qq.com/act/lottery_ms/4177/js/lotteryconfig.js"></script> <script type="text/javascript" src="http://gameact.qq.com/act/lottery_ms/4221/js/lotteryconfig.js"></script>
<script src="http://apps.game.qq.com/CommArticle/app/reg/gdate.php"></script> <script language="javascript"> //定义公共变量 var SAVE_DATA = { 'iArea' : '', //记录登录玩家已绑定的大区号 'iRoleId' : 0 };
//抽奖 function getGift_witharea(activityId,ruleId){ need("biz.login",function(LoginManager){ LoginManager.checkLogin(function(){ if(!SAVE_DATA.iArea){ showMsg2('请先选择一个游戏大区!'); sign_2314.bind_area(); return; } window['getGiftMain_'+activityId].setOutData({ 'sArea' : SAVE_DATA.iArea }); window['getGiftMain_'+activityId].submit(ruleId); }, function(){ LoginManager.login(); }); }); }
function getGift_withoutarea(activityId){ need("biz.login",function(LoginManager){ LoginManager.checkLogin(function(){ if(!SAVE_DATA.iArea){ showMsg2('请先选择一个游戏大区!'); sign_2314.bind_area(); return; } window['getGiftMain_'+activityId].setOutData({ 'sArea' : SAVE_DATA.iArea }); window['getGiftMain_'+activityId].submit(); }, function(){ LoginManager.login(); }); }); }
//登录与注销 milo.addEvent(g("dologin"), "click", function() { need("biz.login",function(LoginManager){ LoginManager.init({ needReloadPage:true }); LoginManager.login(); }); return false; }); milo.addEvent(g("dologout"), "click", function() { need("biz.login",function(LoginManager){ LoginManager.logout(); }); return false; });
//milo.ready(function() { //need("biz.login",function(LoginManager){ LoginManager.checkLogin(function(){ SAVE_DATA.iUin=LoginManager.getUserUin(); g("login_qq_span").innerHTML = SAVE_DATA.iUin;
//alert('for test only:'+SAVE_DATA.iUin+'已经登录'); getCookieArea();//登录后,从cookie或报名后台获取已报名大区 }); //}); //}); //转发微博 function showMsg1(str){ $$("#gift_name").html(str); need("biz.dialog",function(Dialog){ Dialog.show("relayBox1"); }); }
function showMsg2(str){ $("#msg_ok").html(str); need("biz.dialog",function(Dialog){ Dialog.show("relayBox2"); }); }
milo.addEvent(g("msg1_close"), "click", function() { need("biz.dialog",function(Dialog){ Dialog.hide(); }); });
milo.addEvent(g("msg2_close"), "click", function() { need("biz.dialog",function(Dialog){ Dialog.hide(); }); });
milo.addEvent(g("weibo"), "click", function() { share.ShareMicroblog({ contentid: 1, // 后台录入的备选内容序号 content: "我正在参与#穿越火线##翔龙贺新春#活动,我已入手 "+$("#gift_name").html()+" ,心动不如行动,快猛击活动地址:", // 分享结束的回调函数,如返回false,则会阻止默认的处理函数(弹出提示) complete: function(res) { if(res) { if(res.code == "6"){ showMsg2("您还没有开通腾讯微博呦,快去开通吧~"); window.open('http://t.qq.com/reg/index.php?pref=internal','_blank'); }else if(res.code == "0"){ showMsg2("转发微博成功,感谢您的参与!"); }else showMsg2(res.msg); } else { showMsg2("分享失败啦~"); } return false; // 阻止默认处理函数 } }); });
//查看昨日完成局数 function includeYesJuShuSucc(){ if(typeof(JSON_YESJUSHU.YesJuShu)=='undefined') { $$("#li_yesjushu").html("(-103)对不起,系统繁忙,请稍候再试!"); } else { var iYesJuShu = parseInt(JSON_YESJUSHU.YesJuShu); if(iYesJuShu>=6) $$("#li_yesjushu").html("昨日您在全大区中的最高单大区完成局数为:"+iYesJuShu+" 局(今日可领取“游戏6局红包”)。"); else $$("#li_yesjushu").html("昨日您在全大区中的最高单大区完成局数为:小于6局(今日不可领取“游戏6局红包”)"); } need("biz.dialog",function(Dialog){ Dialog.show("yesjushuBox"); }); }
function getMyYesJuShu(){ need("biz.login",function(LoginManager){ LoginManager.checkLogin(function(){ if(!SAVE_DATA.iArea){ showMsg2('请先选择一个游戏大区!'); sign_2314.bind_area(); return; } include("http://apps.game.qq.com/cgi-bin/cf/a20130124xlhxc/AppCFDragonSpringGetYesJuShu.cgi?sArea="+SAVE_DATA.iArea+"&rd="+Math.random(),function(load_yesjushu){ if(load_yesjushu){ if(typeof(JSON_YESJUSHU)=="undefined"){ showMsg2("(-101)对不起,系统繁忙,请稍候再试!"); return; } if(JSON_YESJUSHU.retCode!=0) { showMsg2(JSON_YESJUSHU.retMsg); return; } includeYesJuShuSucc(); } else{ showMsg2('(-102)对不起,系统繁忙,请稍候再试!'); } }); }, function(){ LoginManager.login(); }); }); }
milo.addEvent(g("show_yesjushu"), "click", function() { getMyYesJuShu(); return false; });
milo.addEvent(g("show_yesjushu_close"), "click", function() { need("biz.dialog",function(Dialog){ Dialog.hide(); }); });
//查看活动期间完成任务的天数 function include6JuDaysSucc(){ if(typeof(JSON_DAYS.Days)=='undefined') { $$("#li_days").html("(-203)对不起,系统繁忙,请稍候再试!"); $$("#li_lotterynum").html(" "); } else { var iDays = parseInt(JSON_DAYS.Days); var iLotteryNum = Math.floor(iDays/5); $$("#li_days").html("活动期间您在单日单大区完成6局游戏的天数为:"+iDays+" 天;"); $$("#li_lotterynum").html("活动期间您总共可以领取幻影道具卡 "+iLotteryNum+" 次。"); } need("biz.dialog",function(Dialog){ Dialog.show("daysBox"); }); }
function getMyDays(){ need("biz.login",function(LoginManager){ LoginManager.checkLogin(function(){ if(!SAVE_DATA.iArea){ showMsg2('请先选择一个游戏大区!'); sign_2314.bind_area(); return; } include("http://apps.game.qq.com/cgi-bin/cf/a20130124xlhxc/AppCFDragonSpringGet6JuDays.cgi?sArea="+SAVE_DATA.iArea+"&rd="+Math.random(),function(load_6judays){ if(load_6judays){ if(typeof(JSON_DAYS)=="undefined"){ showMsg2("(-201)对不起,系统繁忙,请稍候再试!"); return; } if(JSON_DAYS.retCode!=0) { showMsg2(JSON_DAYS.retMsg); return; } include6JuDaysSucc(); } else{ showMsg2('(-202)对不起,系统繁忙,请稍候再试!'); } }); }, function(){ LoginManager.login(); }); }); }
milo.addEvent(g("show_days"), "click", function() { getMyDays(); return false; });
milo.addEvent(g("show_days_close"), "click", function() { need("biz.dialog",function(Dialog){ Dialog.hide(); }); }); Date.prototype.getDateFromDateStr = function (a, b) { a = a + ''; if (typeof (b) != 'string') { b = 'yyyy-MM-dd hh:mm:ss' } var c = { yearStr: '', monthStr: '', dateStr: '', hourStr: '00', minuteStr: '00', secondStr: '00' }; { var d = /(y{2,4})|(d{1,2})|(h{1,2})|(s{1,2})/ig; var e = b.match(d); for (var i = 0; i < e.length; i++) { e = e.toLowerCase(); var f = a.substr(b.indexOf(e), e.length); if (f && !isNaN(f) && f * 1 == parseInt(f * 1, 10)) { if (/y+/.test(e)) { c.yearStr = f } if (/d+/.test(e)) { c.dateStr = f } if (/h+/.test(e)) { c.hourStr = f } if (/s+/.test(e)) { c.secondStr = f } } } } { var d = /M{1,2}/g; var e = b.match(d); if (e && e.length == 1) { var f = a.substr(b.indexOf(e[0]), e[0].length); if (f && !isNaN(f) && f * 1 == parseInt(f * 1, 10)) { c.monthStr = f } } d = /m{1,2}/g; e = b.match(d); if (e && e.length == 1) { var f = a.substr(b.indexOf(e[0]), e[0].length); if (f && !isNaN(f) && f * 1 == parseInt(f * 1, 10)) { c.minuteStr = f } } } { var g = new Date(); if (!c.dateStr) { c.dateStr = String(g.getDate()) } if (!c.monthStr) { c.monthStr = String(g.getMonth() + 1) } if (!c.yearStr) { c.yearStr = String(g.getFullYear()) } var h = c.yearStr + '-' + c.monthStr + '-' + c.dateStr + ' ' + c.hourStr + ':' + c.minuteStr + ':' + c.secondStr } return new Date(c.yearStr * 1, (c.monthStr * 1 - 1), c.dateStr * 1, c.hourStr * 1, c.minuteStr * 1, c.secondStr * 1) };
function ShowAlert() { var dtnow = new Date(); dtnow = dtnow.getDateFromDateStr(json_curdate, 'yyyy-MM-dd hh:mm:ss'); var hour = dtnow.getHours(); var min = dtnow.getMinutes(); if(hour == 11 && min>30) { alert("亲爱的玩家,目前参与人数过多,建议您下午4点以后来领取奖励, 目前将遇到系统提示有误的情况,会在活动空闲期恢复正常"); } if(hour>11 && hour<=13) { alert("亲爱的玩家,目前参与人数过多,建议您下午4点以后来领取奖励, 目前将遇到系统提示有误的情况,会在活动空闲期恢复正常"); } }
ShowAlert(); </script> <script src="http://ossweb-img.qq.com/images/script/bootmanager.js"></script> <!--<script type="text/javascript"> $import('com.qq.basic.*'); //下面代码仅仅为测试代码而已,正式的时候,不用提供。 ScrollMarqueeUP.init({ 'contentId': 'carouselContent', //容器ID 'scrollstep': 1, //每次移动的像素 'scrollstoptime': 20 //间断时间(毫秒) }); </script>-->
<!-- 头低 --> <script type="text/javascript" src="http://ossweb-img.qq.com/images/cf/title/cf.js"></script> <script type="text/javascript" src="http://ossweb-img.qq.com/images/js/foot.js"></script>
<!-- 统计 --> <script type="text/javascript" src="http://pingjs.qq.com/ping_tcss_ied.js"></script> <script type="text/javascript">if(typeof(pgvMain) == 'function')pgvMain();</script>
</body> </html> <!--[if !IE]>|xGv00|55df89270a0f60808c01f397cc314ebb<![endif]--> 我给大家欣赏
|