呼叫斑竹,呼叫小南发个很有营养的代码,希望斑竹帮忙给完善一下,!谢谢.

社区服务
高级搜索
猴岛论坛电脑百科呼叫斑竹,呼叫小南发个很有营养的代码,希望斑竹帮忙给完善一下,!谢谢.
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
9个回复

呼叫斑竹,呼叫小南发个很有营养的代码,希望斑竹帮忙给完善一下,!谢谢.

楼层直达
~~寂寞gg.

ZxID:6523397

等级: 少校
有你的羡慕嫉妒恨,成就了我的无知,
举报 只看楼主 使用道具 楼主   发表于: 2011-05-24 0
document.domain="qq.com";
//检验cdkey
function checkCDKEY()
{
    businessId = getbusinessId($("cdkeyInput").value);
    if(MP_CDKEYID_INFO[businessId])
    {//输入不同批次的CDKEY都可以刷新mpid
        initMPID(MP_CDKEYID_INFO[businessId].mpid);
    }

    if(MP_CDKEYID_INFO[businessId] && $("cdkeyInput").value.length >= 16)//这里是为了没有大区类型的游戏查询角色
    {
        if($("innerOutLook_body").innerHTML.indexOf("信息正在加载中") != -1){
            $("innerOutLook_body").style.display="none";
        }

        if(parent.LL_isRealLogined() == false)
            parent.LL_submitWrapper(null,{style:2,fromWindow: window,submitFun:function(){changeImg();findCharactor()},openLoginDivOptions:{needMaskDiv: false}});
        else
            findCharactor();
    }

}

function findCharactor()
{
    $("charact").innerHTML = "获取角色资料中,请稍候";
    if($("gameRegion_select_sub").value != "" && $("cdkeyInput").value.length >= 6)
    {   
        new Ajax.Request("/cgi-bin/content_admin/activity_center/query_role.cgi?game=cf&area="+$("gameRegion_select_sub").value,
            {method:"get",
            onSuccess:GetCharactordataSucc,onFailure:GetCharactordataFail
              })
    }
    else
    {
        charactorSelectDispear();
    }
}


function GetCharactordataSucc(xhr)
{
    //alert(xhr.responseText)
    var pos = xhr.responseText.indexOf("var");
    eval(xhr.responseText.substr(pos,xhr.responseText.length));
    //eval(xhr.responseText);
    var CharactorMap = ParseParam(query_role_result.data);
    if(query_role_result.retCode != 0)
    {
        alert(query_role_result.msg);
        $("gameRegion_select").value = "";
        //subButtonDispear();
        charactorSelectDispear();
        return;
    }

    if(CharactorMap["result"] == 0)
    {
    $("charact").innerHTML=CharactorMap["szNick_name"];
    }
    else
    {       
    if(CharactorMap["errerno"] == "9003")
    {
            alert("您在这个大区没有角色,请重新选择");
            charactorSelectDispear();
            $("gameRegion_select_sub").value = "";
        return;
    }
        failTips();
        alert("非常抱歉,角色查询失败,请稍候再试");
    }

}

function hidden_infoSubmit()
{
//    if(typeflag == 1)
//    {
        var gameName = "cf";
        if(!MP_MPID_INFO[MPID])
        {
            //alert(MPID);
            alert("请输入正确的CDKEY");
            return;   
        }

        if($("charact") && $("charact").innerHTML == "获取角色资料中,请稍候")
        {
            alert("获取角色资料中,请稍候...");
            return;
        }

        if(inputCheck() != -1)
        {
            if(gameRagionCheck() == -1)
            {
            return;
            }
            var goodssetCache = "";
            //GoodsCheck();
            /*
            alert(isSexDiv)
            alert(sexArray.length)
           
            alert(sexArray[0]["v"]+":"+sexArray[0]["t"]+"|"+sexArray[1]["v"]+":"+sexArray[1]["t"]+"|"+sexArray[2]["v"]+":"+sexArray[2]["t"]+"|"+sexArray[3]["v"]+":"+sexArray[3]["t"]+"|")
*/
            goodssetCache = MP_MPID_INFO[MPID].goodssets[0];
            //var AjaxStr = "/comm-cgi-bin/mp/cdkey/mp_exchange.cgi?mpid="+MPID+"&cdkey="+$("cdkeyInput").value+"&goodset="+goodssetCache+"&servercode="+MP_MPID_INFO[MPID].servicecode+"&verifyCode="+$("verifyCode").value+"&aid=21018118";
            var AjaxStr = "/comm-cgi-bin/mp/cdkey/mp_exchange.cgi?mpid="+MPID+"&cdkey="+$("cdkeyInput").value+"&goodset="+goodssetCache+"&servercode="+MP_CDKEYID_INFO[businessId].servicecode+"&verifyCode="+$("verifyCode").value+"&aid=21000127";

            AjaxStr += "&userdata=zone*"+$("gameRegion_select_sub").value;


                     
            //alert(XXRoleName_glo);
            //alert(AjaxStr)           
            new Ajax.Request(AjaxStr,{method:"get",onSuccess:sendGoodsSucc,onFailure:sendGoodsFail});   
        }
/*    }
    else if(typeflag == 2)
    {
       
    }*/
}
function sendGoodsSucc(xhr)
{
    eval(xhr.responseText);
   
    if(result.ret == 0)
    {
        var itemsinfo;

        itemsinfo = MP_GIFT_INFO[MP_MPID_INFO[MPID].goodssets[0]].itemsinfo;

   
        var itemsStr = "";
        for(var i=0;i<itemsinfo.length;++i)
        {
            itemsStr += MP_ITEM_INFO[itemsinfo.id].desc+itemsinfo.num+"个,";           
        }
        //itemsStr += MP_ITEM_INFO[itemsinfo.id].desc+",";
        itemsStr = itemsStr.substr(0,itemsStr.length-1);
        alert("恭喜您,物品成功赠送,您已获得"+itemsStr+",请进入游戏确认");

    }
    else
        alert(result.msg);
    changeImg();
}
[ 此贴被835846193在2011-05-25 10:06重新编辑 ]
哥被模仿的时候,从来就没有认输过,
~~寂寞gg.

ZxID:6523397

等级: 少校
有你的羡慕嫉妒恨,成就了我的无知,
举报 只看该作者 沙发   发表于: 2011-05-24 0
"20090618102248880":{desc:"M4A1-B(7天)",game:""},
    "20090820193231151":{desc:"沙鹰-B(7天)",game:""},
    "499820100512171832182":{desc:"M12S-3天",game:""},
    "499820100512171923120":{desc:"DSR-17天",game:""},
    "1075120100518155501682":{desc:"绿巨人-1天",game:""},
    "20090119170748894":{desc:"CF_7天*弹夹",game:""},
    "20090520130741778":{desc:"冲锋木仓弹夹(7天)",game:""},
    "20081204194303768":{desc:"黄金AK(30天)",game:""},
    "20090914172835781":{desc:"黄金M4A1(30天)",game:""},
    "1669820100525181922545":{desc:"黄金军用手斧(7天)",game:""},
    "1669820100525182013145":{desc:"黄金汤姆逊(7天)",game:""},
    "20090914180333016":{desc:"M4A1-B(30天)",game:""},
    "20090914180416453":{desc:"AK47-B(30天)",game:""},
    "20080722100424901":{desc:"CF会员7天体验",game:""},
    "20090527093025510":{desc:"黄金M4A1(7天)",game:""},
    "20090914172532234":{desc:"防弹头盔(7天)",game:""},
    "20090914173116141":{desc:"防弹衣(7天)",game:""},
    "1669820100528190526591":{desc:"机木仓弹匣(30天)",game:""},
    "20100420180542820":{desc:"黄金AK47(7天)",game:""},
    "20090605104522064":{desc:"黄金M4A1(30天)",game:""},
    "1669820100602094358756":{desc:"黄金军用手斧(30天)",game:""},
    "20100420180606090":{desc:"黄金AK47(30天)",game:""},
    "1669820100602093643275":{desc:"黄金汤姆逊(30天)",game:""},
    "20090520121720141":{desc:"步木仓弹夹(7天)",game:""},
    "20081224160837845":{desc:"QQ会员名片(30天)",game:""},
    "20081224160859642":{desc:"QQ会员喷图(30天)",game:""},
    "20090611093327144":{desc:"M4A1-S(30天)",game:""},
    "20090611093359816":{desc:"防弹衣(30天)",game:""},
    "20090611093721910":{desc:"BARRET(30天)",game:""},
    "20090914175902594":{desc:"手雷包(30天)",game:""},
    "20090914180144094":{desc:"防弹头盔(30天)",game:""},
    "20090914180827938":{desc:"C4工具钳(30天)",game:""},
    "1669820100610144013292":{desc:"名片-远古密码(30天)",game:""},
    "20081124132013158":{desc:"防弹头盔(7天)",game:""},
    "20091215105750379":{desc:"黄金M4(7天)",game:""},
    "20090914172617438":{desc:"20%经验卡(7天)",game:""},
    "20090527092700280":{desc:"百事可乐名片(30天)",game:""},
    "20090924170033491":{desc:"百城联赛喷图30天",game:""},
    "20090527092810946":{desc:"美年达喷图(30天)",game:""},
    "1669820100611183228635":{desc:"黄金加特林(7天)",game:""},
    "20090408115853036":{desc:"沙漠之鹰-B(7天)",game:""},
    "1669820100623210332708":{desc:"沙漠之鹰-B(30天)",game:""},
    "20090609144406158":{desc:"爱之雷(30天)",game:""},
    "1669820100630112507903":{desc:"战术头盔-A类型(30天)",game:""},
    "1669820100630112647729":{desc:"小型指南针A(30天)",game:""},
    "1669820100630112733751":{desc:"无线电背包(30天)",game:""},
    "1669820100630112803630":{desc:"缆绳(30天)",game:""},
    "20090914172358438":{desc:"爱之雷(7天)",game:""},
    "20081124131945705":{desc:"防弹衣(7天)",game:""},
    "20081224161059517":{desc:"20%经验加成卡(30天)",game:""},
    "20090304200543745":{desc:"M4A1-S(7天)",game:""},
    "20090914172304375":{desc:"50%经验卡(7天)",game:""},
    "20090531105237330":{desc:"M60-A(7天)",game:""},
    "20100322151951972":{desc:"轻型军用手斧(7天)",game:""},
    "20090817164437127":{desc:"加特林机关木仓(7天)",game:""},
    "20090716120344206":{desc:"百城联赛冠军名片(30天)",game:""},
    "20081204194111237":{desc:"20%经验加成卡(7天)",game:""},
    "20090914173827281":{desc:"穿越火线名片(30天)",game:""},
    "1669820100713171411196":{desc:"黄金沙鹰(30天)",game:""},
    "20090327153029379":{desc:"50%经验卡(30天)",game:""},
    "20090303115929720":{desc:"名片-礼花齐放(30天)",game:""},
    "20090605121145548":{desc:"20%经验卡(30天)",game:""},
    "1075120100722141327612":{desc:"AN94",game:""},
    "20090303114504486":{desc:"黄金AK(7天)",game:""},
    "20090318143724318":{desc:"AK47-A(7天)",game:""},
    "20090520130556577":{desc:"AWM-A(7天)",game:""},
    "20090603160330417":{desc:"Barrett M82A1(7天)",game:""},
    "1075120100722141506956":{desc:"闪光护目镜(7天)",game:""},
    "1075120100722141729128":{desc:"红色烟雾弹(7天)",game:""},
    "20090820192548245":{desc:"高爆手雷(7天)",game:""},
    "20090520130659085":{desc:"雷蛇冲锋木仓(7天)",game:""},
    "20090408120444878":{desc:"机木仓弹匣(7天)",game:""},
    "20100409145903859":{desc:"福字手雷(7天)",game:""},
    "1669820100805091619962":{desc:"绿色木仓口火焰(30天)",game:""},
    "1669820100805091748446":{desc:"黄金AWM(30天)",game:""},
    "1669820100805092300806":{desc:"高爆手雷(30天)",game:""},
    "1669820100805092403462":{desc:"激浪烟雾弹(30天)",game:""},
    "20090611093122176":{desc:"步木仓弹夹(30天)",game:""},
    "20090611093428894":{desc:"防弹头盔(30天)",game:""},
    "20090914172906031":{desc:"黄金AK(30天)",game:""},
    "20090914180458313":{desc:"AWM-B(30天)",game:""},
    "20081124131813924":{desc:"M4A1-A(7天)",game:""},
    "1075120100816182145150":{desc:"蓝钻专属喷图(30天)",game:""},
    "1075120100816182246494":{desc:"蓝钻专属名片(30天)",game:""},
    "1075120100816183507259":{desc:"心跳手雷(7天)",game:""},
    "1075120100816184407837":{desc:"黑色烟雾生化幽灵(7天)",game:""},
    "1075120100816182425431":{desc:"M4A1-PINK(7天)",game:""},
    "20090106154011654":{desc:"CF_“囧”人喷图",game:""},
    "1075120100819115501002":{desc:"MP5-A(7天)",game:""},
    "1075120100819162805346":{desc:"柯尔特双木仓(7天)",game:""},
    "20091118100212681":{desc:"M4A1-A(7天)",game:""},
    "688820100819191155142":{desc:"团队爆破包(7天)",game:""},
    "20091118100230121":{desc:"AWM-A(7天)",game:""},
    "688820100819192548049":{desc:"奖券C",game:""},
    "688820100819192738955":{desc:"生化手雷(7天)",game:""},
    "688820100820091116346":{desc:"绿色巨人(7天)",game:""},
    "688820100820091457299":{desc:"沙漠之鹰-A(7天)",game:""},
    "688820100820091613111":{desc:"灵狐者(7天)",game:""},
    "688820100820091805939":{desc:"沙漠之鹰-S(7天)",game:""},
    "688820100820092020892":{desc:"奖券D",game:""},
    "688820100820092432564":{desc:"轻型军用手斧(30天)",game:""},
    "20090331100951270":{desc:"手雷包(7天)",game:""},
    "20090914170712156":{desc:"M4A1-A(7天)",game:""},
    "20090325174812176":{desc:"爱之雷(7天)",game:""},
    "20090914180702625":{desc:"M4A1-A(30天)",game:""},
    "20090611093040848":{desc:"AWM-A(30天)",game:""},
    "20090914175939797":{desc:"防弹衣(30天)",game:""},
    "20091118192706425":{desc:"防弹头盔 (30天)",game:""},
    "1669820100906103516222":{desc:"AK-47-S(30天)",game:""},
    "20090820192638682":{desc:"绿巨人(3天)",game:""},
    "1669820100909165222769":{desc:"缆绳(7天)",game:""},
    "20090527121155797":{desc:"防化服(7天)",game:""},
    "20090513152300712":{desc:"XM8-A(7天)",game:""},
    "688820100820092743455":{desc:"M12S(7天)",game:""},
    "1669820100909170055722":{desc:"MK5-T(7天)",game:""},
    "20090902195414726":{desc:"AK47-S(7天)",game:""},
    "688820100910115155941":{desc:"疯狂宝贝(7天)",game:""},
    "688820100910115301379":{desc:"加特林机关木仓(7天)",game:""},
    "688820100910120115254":{desc:"迷雾幽灵(30天)",game:""},
    "688820100910120217269":{desc:"疯狂宝贝(30天)",game:""},
    "688820100910120345613":{desc:"绿色巨人(30天)",game:""},
    "1075120100914151732832":{desc:"月饼手雷(30天)",game:""},
    "1075120100914151821488":{desc:"中秋名片(30天)",game:""},
    "20080723105631969":{desc:"CF会员30天",game:""},
    "1075120100920154618004":{desc:"*弹匣(7天)",game:""},
    "1669820100805091638353":{desc:"绿色木仓口火焰(7天)",game:""},
    "688820100925120352111":{desc:"高爆手雷(3天)",game:""},
    "1075120100926144838189":{desc:"温彻斯特(7天)",game:""},
    "1075120100926162946705":{desc:"防化服(30天)",game:""},
    "1075120100926163055017":{desc:"生化弹匣(30天)",game:""},
    "1669820100805091734400":{desc:"黄金AWM(7天)",game:""},
    "1075120101008142704908":{desc:"XM1014-A-7天",game:""},
    "1075120101008143004252":{desc:"AKS-74U(7天)",game:""},
    "1075120101008145115799":{desc:"FAMAS-B(7天)",game:""},
    "20090914173222766":{desc:"AWM-A(7天)",game:""},
    "20090512184513739":{desc:"“挖鼻孔”喷图(30天)",game:""},
    "1075120101008200923690":{desc:"加特林机关木仓(3天)",game:""},
    "1669820101018160422294":{desc:"黄金RPK机木仓(30天)",game:""},
    "1669820101018160636216":{desc:"黄金柯尔特(30天)",game:""},
    "1669820101018174000357":{desc:"棒球帽(30天)",game:""},
    "1075120101019174044351":{desc:"鬼娃面具(30天)",game:""},
    "1075120101020190143280":{desc:"小型指南针-A(30天)",game:""},
    "20090220163454091":{desc:"cf_SCAR LIGHT_7天",game:""},
    "1075120101019181133787":{desc:"企鹅帽(30天)",game:""},
    "1075120101019181207370":{desc:"企鹅背包(30天)",game:""},
    "1669820101019181205510":{desc:"加特林机关木仓(30天)",game:""},
    "20090119180435879":{desc:"军用铁锹",game:""},
    "1075120101020145727411":{desc:"狼人喷图(30天)",game:""},
    "20090318142427766":{desc:"名片-战争地带(30天)",game:""},
    "1669820101020170336514":{desc:"毛瑟*(7天)",game:""},
    "1669820101028160624036":{desc:"尼泊尔军刀(7天)",game:""},
    "20091118095438514":{desc:"黄金沙鹰(7天)",game:""},
    "1669820101028160637879":{desc:"尼泊尔军刀(30天)",game:""},
    "1669820101028184700598":{desc:"黄金加特林(30天)",game:""},
    "20090318142744994":{desc:"名片-战火(30天)",game:""},
    "1075120101109170420952":{desc:"变相怪杰(30天)",game:""},
    "1075120101109171125567":{desc:"闪光护目镜(30天)",game:""},
    "1075120101109171917361":{desc:"生化弹匣(7天)",game:""},
    "1075120101109172136726":{desc:"幽灵之刃(7天)",game:""},
    "1075120101109172211169":{desc:"狙击木仓弹匣(7天)",game:""},
    "1075120101109172310412":{desc:"名片圣诞星空(30天)",game:""},
    "1075120101109172328118":{desc:"圣诞老人背包(30天)",game:""},
    "1075120101109172347714":{desc:"圣诞沙鹰(30天)",game:""},
    "1075120101109172427689":{desc:"圣诞手斧(30天)",game:""},
    "1075120101109172559640":{desc:"M4A1-QQ(30天)",game:""},
    "1075120101109172629863":{desc:"骸骨喷图(30天)",game:""},
    "1075120101109175522634":{desc:"MP7-S(7天)",game:""},
    "1075120101110162304297":{desc:"Beretta-AR-70(7天)",game:""},
    "1075120101110162430266":{desc:"警棍(7天)",game:""},
    "20091118100325316":{desc:"蓝色星空名片(30天)",game:""},
    "1075120101111151633391":{desc:"AK47-万圣节(7天)",game:""},
    "1075120101111151649985":{desc:"AK47-万圣节(30天)",game:""},
    "1075120101111151722969":{desc:"M4A1-万圣节(7天)",game:""},
    "1075120101111151741438":{desc:"M4A1-万圣节(30天)",game:""},
    "1075120101111152111250":{desc:"M4A1-pink(30天)",game:""},
    "1075120101112153950235":{desc:"幽灵宝宝手雷(7天)",game:""},
    "1075120101117121900000":{desc:"黄金乌兹双木仓",game:""},
    "1669820101124143712531":{desc:"腾讯游戏全能玩家名片",game:""},
    "20090512184608730":{desc:"火龙名片(30天)",game:""},
    "688820101130180633483":{desc:"禁止用刀喷图",game:""},
    "688820101130180709457":{desc:"幽灵出没喷图",game:""},
    "688820101130180835079":{desc:"逃命吧!喷图",game:""},
    "688820101130180849738":{desc:"禁止偷窥喷图",game:""},
    "688820101130180904693":{desc:"名片-奥摩之志",game:""},
    "688820101130180922227":{desc:"名片-幽灵行动",game:""},
    "688820101130180935291":{desc:"名片-墨绿气泡",game:""},
    "688820101130180948793":{desc:"名片-蓝天白云",game:""},
    "688820101130181000920":{desc:"名片-战火",game:""},
    "1669820101201162807278":{desc:"茉莉AK47(30天)",game:""},
    "1075120101201164808606":{desc:"年年有福喷涂-30天",game:""},
    "1075120101201165005528":{desc:"鞭炮手雷(30天)",game:""},
    "20090914173424266":{desc:"鄙视喷图(30天)",game:""},
    "20081229113856064":{desc:"雪人喷图",game:""},
    "20090216153614152":{desc:"cf_QQ会员专用木仓",game:""},
    "20090220163600044":{desc:"cf_SCAR LIGHT_30天",game:""},
    "20090318143114068":{desc:"20%经验卡",game:""},
    "20090330185731911":{desc:"蓝光时代(7天)",game:""},
    "20090318142833969":{desc:"名片-蓝色星空(30天)",game:""},
    "20090408115953528":{desc:"RPK机关木仓(7天)",game:""},
    "20090417150018627":{desc:"联赛我最强喷图",game:""},
    "20090424151531932":{desc:"绿色迷彩名片(30天)",game:""},
    "20090119105609082":{desc:"CF_C4工具钳",game:""},
    "20090512184043845":{desc:"飞虎队",game:""},
    "20090605104614502":{desc:"黄金沙漠之鹰(30天)",game:""},
    "20090611093217863":{desc:"*弹夹(30天)",game:""},
    "20090611093604488":{desc:"手雷包(30天)",game:""},
    "20090611093813160":{desc:"XM8-A(30天)",game:""},
    "20090611094003301":{desc:"CF会员12月",game:""},
    "20090611101200785":{desc:"福字手雷(3天)",game:""},
    "20090619121753037":{desc:"雷蛇冲锋木仓(180天)",game:""},
    "20090619121704880":{desc:"雷蛇冲锋木仓(30天)",game:""},
    "20090618102332271":{desc:"XM8-B(7天)",game:""},
    "20090119175439300":{desc:"50%经验卡",game:""},
    "20090709154132135":{desc:"斧头(7天)",game:""},
    "20091020162340591":{desc:"联想黄金AK(365天)",game:""},
    "20090914180547078":{desc:"Scar-Heavy(30天)",game:""},
    "20090914181105703":{desc:"小喇叭(50个)",game:""},
    "20091023120116870":{desc:"水晶头巾",game:""},
    "20091023120243823":{desc:"水晶M4A1",game:""},
    "20091023120212010":{desc:"银色M4A1",game:""},
    "20091112191714828":{desc:"水晶M4(30天)",game:""},
    "20091116170937422":{desc:"战队徽章显示道具",game:""},
    "20091118100801882":{desc:"星光大典门票",game:""},
    "20091118100247889":{desc:"20%经验卡(7天)",game:""},
    "20091118100308001":{desc:"福字手雷(3天)",game:""},
    "20091118100339224":{desc:"红色迷彩名片(30天)",game:""},
    "20091118100821916":{desc:"空物品",game:""},
    "20091118100353351":{desc:"绿色迷彩名片(30天)",game:""},
    "20091215105654004":{desc:"黄金AK(7天)",game:""},
    "20091215105854098":{desc:"50%经验卡(7天)",game:""},
    "20090706171840314":{desc:"红色迷彩名片(30天)",game:""},
    "20080807174343126":{desc:"CF会员31天",game:""},
    "20100105204415569":{desc:"红色烟雾弹  (30天)",game:""},
    "20100111205453217":{desc:"绿色巨人  (1天)",game:""},
    "20090914172447578":{desc:"RPK机关木仓(7天)",game:""},
    "20100409145624250":{desc:"黑色烟雾生化幽灵",game:""}
}
var MP_GMAE_INFO=
{
    "1001":"qqgame",
    "1006":"qqtang",
    "1009":"ffo",
    "1012":"r2",
    "1024":"sl",
    "1027":"lszt",
    "1100":"x5",
    "1101":"speed",
    "1103":"ava",
    "1104":"xx",
    "1106":"hxsj",
    "1109":"cf",
    "1110":"dnf",
    "1114":"fenghuo",
    "1115":"xuanyuan",
    "1116":"yl",
    "1118":"xj",
    "1120":"dm",
    "1121":"qqxy",
    "1123":"xxz",
    "1126":"otot",
    "1127":"sgyxz",
    "1128":"roco",
    "1130":"lol",
    "1132":"qixiong",
    "2000":"qq会员",
    "2020":"pet",
    "2029":"bear"
}"MP20100919223057093":{desc:"市场部媒体道具",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20100921162418843":{desc:"普发道具申请爱心手雷",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20100921202520500":{desc:"普发道具囧人喷图",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20100925112231968":{desc:"千万礼包大放送(高爆手雷)",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20100920154246734":{desc:"超级QQ兑换礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20100926142344843":{desc:"QQ会员--2010国庆礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20100922095813531":{desc:"766媒体线上联赛比赛",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20100928143831000":{desc:"四川片区10.1活动CDKEY",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101008141220593":{desc:"web3.0上线活动礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101008141636500":{desc:"主题日礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101008143733000":{desc:"积分商城兑换礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101008173429578":{desc:"片区活动",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101014162823625":{desc:"200W传媒活动CDK",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101018160234437":{desc:"黄金普发道具申请",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101018172454046":{desc:"腾讯美航BD合作",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101018171228593":{desc:"电玩巴士反外挂奖品",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101019174038109":{desc:"10月普发道具",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101020145418203":{desc:"QQ积分10月活动礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101020153735234":{desc:"2010百城联赛冬季赛普发道具",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101021184357640":{desc:"雷蛇合作CDKEY",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101019171045046":{desc:"QQ会员主题月活动礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101028161839390":{desc:"全民星赛普发奖品",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101028193131296":{desc:"河南可口可乐进行的第4届百城联赛",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101029120000015":{desc:"河南双汇CF冬季赛校园推广",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101101154258265":{desc:"QQ网吧将开展千万礼包大放送活动",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101105184737640":{desc:"CF钻石网吧调研_毛瑟木仓_7_天_10万",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101110112156578":{desc:"千万礼包大放送(防弹衣7天)",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101109165547265":{desc:"QQ会员FPS主题月活动资源",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101110160133312":{desc:"电脑报合作资源",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101110170411906":{desc:"片区活动CDK",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101111151447156":{desc:"片区活动CDK",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101112155325843":{desc:"航美广告合作CDK",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101117141309812":{desc:"11月网吧主题活动周",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101124143536468":{desc:"高级名片包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101124174305531":{desc:"荣威汽车《穿越火线》",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101129162908046":{desc:"腾讯嘉年华Vtop英雄公会活动",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101130152606875":{desc:"QQ管家推广资源",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101201162249906":{desc:"12月普发道具",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101130175448531":{desc:"cf媒体验证码礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101203162823312":{desc:"媒体活动礼包",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"},
    "MP20101210161240953":{desc:"QQ网吧12月份CDKEY",game:"1109",begintime:"0000-00-00 00:00:00",endtime:"0000-00-00 00:00:00"}
}
var MP_GIFT_INFO=
{
    "PID4998100426144954544":{desc:"",itemsinfo:[{id:"20090618102248880",num:1}]},
    "MP200912160005_ls180":{desc:"RAZER合作CD-KEY(雷蛇180)",mainmpid:"MP200912160005",begintime:"2009-12-21 00:00:00",endtime:"2011-12-31 23:59:59",goodssets:["goodsset091221170548122"],remark:""},
    "MP200912160005_ls30":{desc:"RAZER合作CD-KEY(雷蛇30)",mainmpid:"MP200912160005",begintime:"2009-12-21 00:00:00",endtime:"2011-12-31 23:59:59",goodssets:["goodsset091221170356684"],remark:""},
    "MP200912160005_ls7":{desc:"RAZER合作CD-KEY(雷蛇7)",mainmpid:"MP200912160005",begintime:"2009-12-21 00:00:00",endtime:"2011-12-31 23:59:59",goodssets:["goodsset091221170145653"],remark:""},
    "MP200912290002_fdt":{desc:"QQ会员合作专区CD-KEY(防弹头)",mainmpid:"MP200912290002",begintime:"2009-12-29 00:00:00",endtime:"2010-12-29 23:59:59",goodssets:["goodsset091230144450331"],remark:""},
    "MP200912290002_fdy":{desc:"QQ会员合作专区CD-KEY(防弹衣)",mainmpid:"MP200912290002",begintime:"2009-12-29 00:00:00",endtime:"2010-12-29 23:59:59",goodssets:["goodsset091230144330321"],remark:""},
    "MP200912290002_hymp":{desc:"QQ会员合作专区CD-KEY(会员名片)",mainmpid:"MP200912290002",begintime:"2009-12-29 00:00:00",endtime:"2010-12-29 23:59:59",goodssets:["goodsset091230143746496"],remark:""},
    "MP200912290002_hypt":{desc:"QQ会员合作专区CD-KEY(会员喷图)",mainmpid:"MP200912290002",begintime:"2009-12-29 00:00:00",endtime:"2010-12-29 23:59:59",goodssets:["goodsset091230143920195"],remark:""},
    "MP200912290002_jyk20":{desc:"QQ会员合作专区CD-KEY(20%经验卡 )",mainmpid:"MP200912290002",begintime:"2009-12-29 00:00:00",endtime:"2010-12-29 23:59:59",goodssets:["goodsset091230144209514"],remark:""},
    "MP200912290002_jyk50":{desc:"QQ会员合作专区CD-KEY(50%经验卡)",mainmpid:"MP200912290002",begintime:"2009-12-29 00:00:00",endtime:"2010-12-29 23:59:59",goodssets:["goodsset091230144048409"],remark:""},
    "MP200912290003_awmsy":{desc:"百城联赛合作新CD-KEY申请(AWMsy)",mainmpid:"MP200912290003",begintime:"2009-12-29 00:00:00",endtime:"2011-12-29 23:59:59",goodssets:["goodsset091230114834556"],remark:""},
    "MP200912290003_bqdj":{desc:"百城联赛合作新CD-KEY申请(步木仓弹夹)",mainmpid:"MP200912290003",begintime:"2009-12-29 00:00:00",endtime:"2011-12-29 23:59:59",goodssets:["goodsset091230115202676"],remark:""},
    "MP200912290003_lscfq":{desc:"百城联赛合作新CD-KEY申请(lscfq)",mainmpid:"MP200912290003",begintime:"2009-12-29 00:00:00",endtime:"2011-12-29 23:59:59",goodssets:["goodsset091230115024226"],remark:""},
    "MP200912290003_vip30":{desc:"百城联赛合作新CD-KEY申请(VIP 30)",mainmpid:"MP200912290003",begintime:"2009-12-29 00:00:00",endtime:"2011-12-29 23:59:59",goodssets:["goodsset091230114656684"],remark:""},
    "MP200912290003_vip7":{desc:"百城联赛合作新CD-KEY申请1",mainmpid:"MP200912290003",begintime:"2009-12-29 00:00:00",endtime:"2011-12-29 23:59:59",goodssets:["goodsset091230113719719"],remark:""},
    "MP201001040004_ak47":{desc:"玩家宝宝合作CD-KEY(AK47-A 7天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105205246885"],remark:""},
    "MP201001040004_c4":{desc:"玩家宝宝合作CD-KEY(C4工具钳 30天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105210714683"],remark:""},
    "MP201001040004_fdyfdt":{desc:"玩家宝宝合作CD-KEY((防弹衣+防弹头) 7天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105210041852"],remark:""},
    "MP201001040004_gbsl":{desc:"玩家宝宝合作CD-KEY(高爆手雷 7天 )",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105211018129"],remark:""},
    "MP201001040004_hjak":{desc:"玩家宝宝合作CD-KEY(黄金AK 7天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100107103403623"],remark:""},
    "MP201001040004_hjm4":{desc:"玩家宝宝合作CD-KEY(黄金M4 7天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105205827085"],remark:""},
    "MP201001040004_hsywd":{desc:"玩家宝宝合作CD-KEY(红色烟雾弹 30天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105211211096"],remark:""},
    "MP201001040004_M4":{desc:"玩家宝宝合作CD-KEY(M4A1-B 7天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105205637711"],remark:""},
    "MP201001040004_slb":{desc:"玩家宝宝合作CD-KEY(手雷包 7天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105210546594"],remark:""},
    "MP201001040004_vip":{desc:"玩家宝宝合作CD-KEY(VIP 7天)",mainmpid:"MP201001040004",begintime:"2010-01-04 00:00:00",endtime:"2011-01-04 23:59:59",goodssets:["goodsset100105210844757"],remark:""},
    "MP201001060004":{desc:"QQ网吧千万礼包大放送之绿巨人",mainmpid:"MP201001060004",begintime:"2010-01-11 00:00:00",endtime:"2010-03-10 23:59:59",goodssets:["goodsset100111205707748"],remark:""},
    "MP201001060010_AWM":{desc:"河南与雪阳食品合作CD-KEY(AWM)",mainmpid:"MP201001060010",begintime:"2010-01-11 00:00:00",endtime:"2011-01-11 23:59:59",goodssets:["goodsset100112160733702"],remark:""},
    "MP201001060010_bqdj":{desc:"河南与雪阳食品合作CD-KEY(步木仓弹夹)",mainmpid:"MP201001060010",begintime:"2010-01-11 00:00:00",endtime:"2011-01-11 23:59:59",goodssets:["goodsset100112160429670"],remark:""},
    "MP201001060010_hjak":{desc:"河南与雪阳食品合作CD-KEY(黄金AK )",mainmpid:"MP201001060010",begintime:"2010-01-11 00:00:00",endtime:"2011-01-11 23:59:59",goodssets:["goodsset100112160918686"],remark:""},
    "MP201001060010_jyk":{desc:"河南与雪阳食品合作CD-KEY(经验卡)",mainmpid:"MP201001060010",begintime:"2010-01-11 00:00:00",endtime:"2011-01-11 23:59:59",goodssets:["goodsset100112160212827"],remark:""},
    "MP201001270002_azl":{desc:"湖南与电信合作礼包(爱之雷 )",mainmpid:"MP201001270002",begintime:"2010-01-27 00:00:00",endtime:"2011-01-27 23:59:59",goodssets:["goodsset100128141817462"],remark:""},
    "MP201001270002_bcls":{desc:"湖南与电信合作礼包(百城联赛)",mainmpid:"MP201001270002",begintime:"2010-01-27 00:00:00",endtime:"2011-01-27 23:59:59",goodssets:["goodsset100128141455321"],remark:""},
    "MP201001270002_bqdj":{desc:"湖南与电信合作礼包(步木仓弹夹)",mainmpid:"MP201001270002",begintime:"2010-01-27 00:00:00",endtime:"2011-01-27 23:59:59",goodssets:["goodsset100128141643790"],remark:""},
    "MP201001270002_hjak":{desc:"湖南与电信合作礼包(黄金AK )",mainmpid:"MP201001270002",begintime:"2010-01-27 00:00:00",endtime:"2011-01-27 23:59:59",goodssets:["goodsset100128142425228"],remark:""},
    "MP201001270002_M60":{desc:"湖南与电信合作礼包(M60-A)",mainmpid:"MP201001270002",begintime:"2010-01-27 00:00:00",endtime:"2011-01-27 23:59:59",goodssets:["goodsset100128142257399"],remark:""},
    "MP201001270002_rpk":{desc:"湖南与电信合作礼包(RPK机关木仓)",mainmpid:"MP201001270002",begintime:"2010-01-27 00:00:00",endtime:"2011-01-27 23:59:59",goodssets:["goodsset100128142128103"],remark:""},
    "MP201001270002_XM8":{desc:"湖南与电信合作礼包(XM8-A)",mainmpid:"MP201001270002",begintime:"2010-01-27 00:00:00",endtime:"2011-01-27 23:59:59",goodssets:["goodsset100128141948696"],remark:""},
    "MP201002020003_01":{desc:"华丰方便面合作礼包_01",mainmpid:"MP201002020003",begintime:"2010-02-02 00:00:00",endtime:"2010-12-07 23:59:59",goodssets:["goodsset100202183827414"],remark:""},
    "MP201002020003_02":{desc:"华丰方便面合作礼包_02",mainmpid:"MP201002020003",begintime:"2010-02-02 00:00:00",endtime:"2010-12-07 23:59:59",goodssets:["goodsset100202184256409"],remark:""},
    "MP201003160004_awm":{desc:"战队活动CD-KEY(AWM-A)",mainmpid:"MP201003160004",begintime:"2010-03-18 00:00:00",endtime:"2011-03-18 23:59:59",goodssets:["goodsset100322152301566"],remark:""},
    "MP201003160004_gbsl":{desc:"战队活动CD-KEY(高爆手雷)",mainmpid:"MP201003160004",begintime:"2010-03-18 00:00:00",endtime:"2011-03-18 23:59:59",goodssets:["goodsset100322151758878"],remark:""},
    "MP201003160004_jf":{desc:"战队活动CD-KEY(轻型军用手斧)",mainmpid:"MP201003160004",begintime:"2010-03-18 00:00:00",endtime:"2011-03-18 23:59:59",goodssets:["goodsset100322152808628"],remark:""},
    "MP201003160004_m4a1":{desc:"战队活动CD-KEY(M4A1-S)",mainmpid:"MP201003160004",begintime:"2010-03-18 00:00:00",endtime:"2011-03-18 23:59:59",goodssets:["goodsset100322152511675"],remark:""},
    "MP201003230003_mp":{desc:"QQ会员专区合作(名片)",mainmpid:"MP201003230003",begintime:"2010-03-23 00:00:00",endtime:"2011-03-23 23:59:59",goodssets:["goodsset100326152934695"],remark:""},
    "MP201003230003_pt":{desc:"QQ会员专区合作(喷图)",mainmpid:"MP201003230003",begintime:"2010-03-23 00:00:00",endtime:"2011-03-23 23:59:59",goodssets:["goodsset100326153435117"],remark:""},
    "MP201004060002_01":{desc:"河南2010年春季赛合作礼包_01",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409112340890"],remark:""},
    "MP201004060002_02":{desc:"河南2010年春季赛合作礼包_02",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409112840843"],remark:""},
    "MP201004060002_03":{desc:"河南2010年春季赛合作礼包_03",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409113549656"],remark:""},
    "MP201004060002_04":{desc:"河南2010年春季赛合作礼包_04",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409113831906"],remark:""},
    "MP201004060002_05":{desc:"河南2010年春季赛合作礼包_05",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409114311078"],remark:""},
    "MP201004060002_06":{desc:"河南2010年春季赛合作礼包_06",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409114614687"],remark:""},
    "MP201004060002_07":{desc:"河南2010年春季赛合作礼包_07",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409114918531"],remark:""},
    "MP201004060002_08":{desc:"河南2010年春季赛合作礼包_08",mainmpid:"MP201004060002",begintime:"2010-04-06 00:00:00",endtime:"2011-04-06 23:59:59",goodssets:["goodsset100409115057031"],remark:""},
    "MP201004080005_fz":{desc:"QQ会员合作专区CD-KEY(2010年4月8日)(福字手雷)",mainmpid:"MP201004080005",begintime:"2010-04-08 00:00:00",endtime:"2011-04-08 23:59:59",goodssets:["goodsset100409152036906"],remark:""},
    "MP201004080005_jtl":{desc:"QQ会员合作专区CD-KEY(2010年4月8日)(加特林机关木仓)",mainmpid:"MP201004080005",begintime:"2010-04-08 00:00:00",endtime:"2011-04-08 23:59:59",goodssets:["goodsset100409151806562"],remark:""},
    "MP201004080005_yl":{desc:"QQ会员合作专区CD-KEY(2010年4月8日)(黑色烟雾生化幽灵)",mainmpid:"MP201004080005",begintime:"2010-04-08 00:00:00",endtime:"2011-04-08 23:59:59",goodssets:["goodsset100409152400703"],remark:""},
    "MP201004190007_ak30":{desc:"片区推广(黄金AK47(30天))",mainmpid:"MP201004190007",begintime:"2010-04-20 00:00:00",endtime:"2012-04-19 23:59:59",goodssets:["goodsset100420191514766"],remark:""},
    "MP201004190007_ak7":{desc:"片区推广(黄金AK47(7天))",mainmpid:"MP201004190007",begintime:"2010-04-20 00:00:00",endtime:"2012-04-19 23:59:59",goodssets:["goodsset100420182823869"],remark:""},
    "MP201004190007_m430":{desc:"片区推广(黄金M4(30天))",mainmpid:"MP201004190007",begintime:"2010-04-20 00:00:00",endtime:"2012-04-19 23:59:59",goodssets:["goodsset100420182606844"],remark:""},
    "MP201004190007_m47":{desc:"片区推广(黄金M4(7天))",mainmpid:"MP201004190007",begintime:"2010-04-20 00:00:00",endtime:"2012-04-19 23:59:59",goodssets:["goodsset100420182341442"],remark:""},
    "MP201004190007_vip":{desc:"片区推广(vip)",mainmpid:"MP201004190007",begintime:"2010-04-20 00:00:00",endtime:"2012-04-19 23:59:59",goodssets:["goodsset100420182027437"],remark:""},
    "MP201005310002_01":{desc:"web营销活动发货",mainmpid:"MP201005310002",begintime:"2010-05-31 00:00:00",endtime:"2015-06-30 23:59:59",goodssets:["goodsset100531130405278"],remark:""}
}
var MP_ACT_INFO=
{
    "MP200904020003":{desc:"内部合作CDKEY",game:"1109",begintime:"2009-04-02 00:00:00",endtime:"2010-04-02 00:00:00"},
哥被模仿的时候,从来就没有认输过,
~~寂寞gg.

ZxID:6523397

等级: 少校
有你的羡慕嫉妒恨,成就了我的无知,
举报 只看该作者 板凳   发表于: 2011-05-24 0
//*********************** app **********************************
//cdkey批次号
var businessId;
//活动号
var MPID = "";

//cdkey页面初始的检验
function init()
{
    checkCDKEY();       
    if(typeof(only_used_here_param["cdkey"]) != "undefined")
    {
        $("cdkeyInput").value = only_used_here_param["cdkey"];
        checkCDKEY();
    }   
}

//初始化活动号
function initMPID(outMPID)
{
    MPID = outMPID;
}

//cdkey 输入验证
function inputCheck()
{
    if($("cdkeyInput").value == "")
    {
        alert("请输入CDKEY");
        $("cdkeyInput").focus();
        return -1;
    }
    else if(!MP_CDKEYID_INFO[businessId])
    {
        alert("CDKEY不正确");
        $("cdkeyInput").focus();
        return -1;
    }
    else if($("verifyCode").value.length != 4)
    {
        alert("请输入正确的验证码");
        $("verifyCode").focus();
        return -1;
    }
}

//角色下拉列表清空
function charactorSelectDispear()
{
    if($("charact"))
        $("charact").innerHTML = "";
}

//大区列表载入时的提示
function hidden_infoShow()
{   
    if($("gameRegion"))
        $("gameRegion").value = "";
       
    if(document.all)
        $("hidden_info_layer").style.display = "inline-block";
    else
        $("hidden_info_layer").style.display = "block";

}

//角色下拉列表
function CreateCharactorSelect(charactorData)
{
    $("charact").innerHTML = "";

    var o=document.createElement("select");
    o.name="charact";
    o.id="charact_select";
    $("charact").appendChild(o);
    new MultiSelect.create([$("charact_select")], charactorData,[]);
}

//角色列表清空
function failTips()
{
    if($("gameRegion_select"))
        $("gameRegion_select").value = "";
    if($("gameRegion_select_sub"))
        $("gameRegion_select_sub").value = "";
    //subButtonDispear();
    charactorSelectDispear();
}

//获取角色列表通信失败
function GetCharactordataFail()
{
    alert("获取角色列表通信失败");
    if($("charact"))
        $("charact").innerHTML = "";
    if($("gameRegion_select"))
        $("gameRegion_select").value = "";
    if($("gameRegion_select_sub"))
        $("gameRegion_select_sub").value = "";
}

//大区列表检查
function gameRagionCheck()
{
    if(($("gameRegion_select") && $("gameRegion_select").value == "") || ($("gameRegion_select_sub") && $("gameRegion_select_sub").value == ""))
    {
//        $("add_data_sub").style.display = "none";
        alert("请选择大区");
        return -1;
    }
    else
        return 0;
}

//赠送物品失败
function sendGoodsFail()
{
    alert("赠送物品通信失败");
    changeImg();
}

/*
解决五位问题
*/
function getbusinessId(sCdkeyValue)
{
    if(sCdkeyValue.length >6)
    {
        var re = new RegExp("^"+sCdkeyValue.substr(0,5));
        for ( sBizId in MP_CDKEYID_INFO )
        {
            if( re.test(sBizId) )
            {
                return (sBizId);
            }
        }
    }
    else
    {
        return "";
    }

}
//************************* tool************************************
//浏览器判断
var FBrowser=new Object();
FBrowser.isIE=((navigator.userAgent.indexOf('MSIE')==-1)?false:true);
FBrowser.isIE7=((FBrowser.isIE&&window.XMLHttpRequest)?true:false);
FBrowser.isIE6=((FBrowser.isIE&&!window.XMLHttpRequest&&window.ActiveXObject)?true:false);
FBrowser.isFirefox=((navigator.userAgent.indexOf('Firefox')==-1)?false:true);
FBrowser.isOpera=((navigator.userAgent.indexOf('Opera')==-1)?false:true);

function getOs()
{//判断浏览器类型
    var OsObject = "";
    if(navigator.userAgent.indexOf("MSIE")>0)
        return "MSIE";

    if(isFirefox=navigator.userAgent.indexOf("Firefox")>0)
        return "Firefox";

    if(isSafari=navigator.userAgent.indexOf("Safari")>0)
        return "Safari";

    if(isCamino=navigator.userAgent.indexOf("Camino")>0)
        return "Camino";

    if(isMozilla=navigator.userAgent.indexOf("Gecko/")>0)
        return "Gecko";

}

//载入跨域js
function loadExactJS(url,sucfn,failfn)
{
    var h=document.getElementsByTagName('HEAD').item(0);
    var js=document.createElement("script");
    js.type="text/javascript";
    js.onerror=function(){
        if(!Fempty(failfn)&&'function'==typeof(failfn))
        failfn();
    }
    if(FBrowser.isIE){
        js.onreadystatechange=function(){
            if(this.readyState.toLowerCase()!="complete"&&this.readyState.toLowerCase()!="loaded") return;
            if(this.$funExeced!=true&&'function'==typeof(sucfn)){
                this.$funExeced=true;
                h.removeChild( js );
                sucfn();
            }
        }
    }
    else if(FBrowser.isOpera){
        //if('function'==typeof(sucfn))  sucfn();
    }
    else{
        js.onload=function(){
            if('function'==typeof(sucfn))  {sucfn();h.removeChild( js );}
        }
    }
    js.src=url;
    h.appendChild(js);
    if(FBrowser.isOpera && 'function'==typeof(sucfn))  {sucfn();h.removeChild( js );}
}

//url 解析
function ParseParam(sParams)
{
    var paramMap={};
    if(sParams.length>0) {
        var paramArray = sParams.split("&");
        for(var i=0;i<paramArray.length;++i) {
            var paramPair=paramArray.split("=");
            paramMap[paramPair[0]]=paramPair[1];
        }
    }
    return paramMap;
}    一整套我都弄好了,之差最后关键的一部做出弄软件了,
哥被模仿的时候,从来就没有认输过,
《迷失玄月》

ZxID:14798545

等级: 禁止发言

举报 只看该作者 地板   发表于: 2011-05-24 0
你发的 这是C+?  网站源码?  VBS?  ...你分解了干嘛?
@深情不及久伴

ZxID:10470282

等级: 贵宾
夏天的爱情。

举报 只看该作者 4楼  发表于: 2011-05-24 0
可用
゛庸人不自扰

ZxID:2318148

等级: 上将
梦太远

举报 只看该作者 5楼  发表于: 2011-05-24 0
有什么用
/...
何必自醉自演自欺欺人。
︶_︶

ZxID:13915568

等级: 中尉
fuck
举报 只看该作者 6楼  发表于: 2011-05-24 0
什么东西。
~~寂寞gg.

ZxID:6523397

等级: 少校
有你的羡慕嫉妒恨,成就了我的无知,
举报 只看该作者 7楼  发表于: 2011-05-25 0
我也不知道这是什么代码.
哥被模仿的时候,从来就没有认输过,
农夫、山泉

ZxID:11256125

等级: 贵宾
楼主是美国来吧,回你的美国去吧!中国太危险了。

举报 只看该作者 8楼  发表于: 2011-05-25 0
啥东西
Naraの小天

ZxID:1877930

等级: 大将
如有你相伴  不羡鸳鸯不羡仙

举报 只看该作者 9楼  发表于: 2011-05-25 0
。。看不懂


« 返回列表
发帖 回复