var qrcode = new QRCode(document.getElementById("qrcode"), { width: 100, height: 100 }); // url生成二维码 if($(".az_code_right").length>0){ var qrcode_title = new QRCode(document.getElementById("qrcode_title"), { width : 100, height : 100 }); } $(function () { var p_text1 = $("#code_url").text(); if($(".az_code_right").length>0){ qrcode_title.makeCode(p_text1); } $(".public_nav li").removeClass('current_page').eq(1).addClass('current_page'); $("#J_rank_list").load('/Layout/gameRankList'); }); // 安卓下载按钮 $(".az_code_right .az_ed_download").hover(function () { $(".az_ed_download img").attr("src", "/static/images/home/az-white.png"); }, function () { $(".az_ed_download img").attr("src", "/static/images/home/SVG-07.png"); }); $(".az_no_link .az_no_download").hover(function () { $(".az_no_download img").attr("src", "/static/images/home/az-white.png"); }, function () { $(".az_no_download img").attr("src", "/static/images/home/SVG-19.png"); }); $(".az_no_download").click(function () { $(".warp_no_download_popup").show(); }) // 手游排行控件显示隐藏 $(function () { $('.rank_list>div').eq(0).find('.big').show() $('.rank_list>div').eq(0).find('.small').hide() $('.rank_list').hover(function () { $('.rank_list>div').hover(function () { $(this).find('.big').show().parent().siblings().find('.big').hide(); $(this).find('.small').hide().parent().siblings().find('.small').show(); }); }); })