123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- if($(".paiming_fl").length){
- var blw = 48;
- var liArr = $("#myscrollbox ul").children("li");
- var mysw = $("#myscroll").width();
- var mus = parseInt(mysw / blw);
- var length = liArr.length - mus;
- var jgbyd_i = 0
- $("#right").click(function () {
- $("#left").addClass("hot")
- jgbyd_i+=1
- if (jgbyd_i < Math.ceil(length/5)) {
- $("#myscrollbox").css("left", -((blw*5) * jgbyd_i));
- } else {
- jgbyd_i = Math.ceil(length/5)-1;
- $("#right").removeClass("hot")
- }
- });
- $("#left").click(function () {
- $("#right").addClass("hot")
- jgbyd_i-=1
-
- if (jgbyd_i >= 0) {
- $("#myscrollbox").css("left", -((blw*5) * jgbyd_i));
- } else {
- jgbyd_i = 0;
- $("#myscrollbox").css("left", 0);
- $("#left").removeClass("hot")
- }
- });
- }
- var url=$("body").attr("data-domainwww")+"ranks.php"
- var imgurl=$("body").attr("data-domainstatic");
- var qharrmc=$(".add_jifeng").find("li").eq(0).attr("data-py")
- var huancundata={}
- $(function() {
- var catid = $(".add_jifeng li").eq(0).attr("data-catid")
- var comid = $(".add_jifeng li").eq(0).attr("data-comid")
- var type = $(".jf_title_lb li").eq(0).attr("data-type")
- $(".jf_title_lb li").each(function(i,o){
- if($(o).attr("data-catid")!=catid ){
- $(o).hide()
- }
- });
- $(".add_jifeng li").eq(0).addClass("active")
- $(".jf_title_lb li").eq(0).addClass("active")
- $("#dqlebiao_bt").html("<li class='jf_num'></li><li class='qiudui'><span>球队</span></li><li class='s_p_f'><span>胜</span><span>平</span><span>负</span></li><li class='jf'>积分</li>")
-
-
- $.getScript('https://jf.botidata.com/jf/data/league/integral/'+comid+'.js?t=' + (new Date()).getTime().toString(), function () {
- var arr=Content
- huancundata[qharrmc+"_"+type]=arr
- if(arr == undefined){
- $('#dqlebiao').append("<p class='wxgss_img'><img src='"+imgurl+"www/img/no-content.png'><span>暂无相关数据</span></p>");
- }else{
- if(arr.length > 0){
- $.each(arr, function(index,v){
- var listHtml = "<ul class='biaonr'><li class='jf_num'><span>" + (index+1) + "</span></li><li class='qiudui'>" + v[1] + "</li><li class='s_p_f'><span>" + v[4] + "</span><span>" +v[5] + "</span><span>" + v[6] + "</span></li><li class='jf'>"+v[2]+"</li></ul>"
- $('#dqlebiao').append(listHtml);
- })
- }
- }
- });
-
- })
- $(".jf_title_lb li").click(function(){
-
- $("#dqlebiao_bt").show()
- $("#dqlebiao").show()
- $(".jqqh_lb").show()
- $(".peiming_dq ul li").eq(0).addClass("qh_active").siblings().removeClass("qh_active");
- var towtype=$(this).attr("data-type")
- var towcomid=''
- var towcatid=''
- $(".add_jifeng li").each(function(i,o){
- if($(o).hasClass("active")){
- towcomid=$(o).attr("data-comid")
- towcatid=$(o).attr("data-catid")
- };
- });
- $(this).addClass("active").siblings().removeClass("active")
- var pandang=$(this).html()
- var datatype=$(this).attr("data-type")
- var datacatid=$(this).attr("data-catid")
-
- if(datacatid == 1 && datatype == 1 ){
- jifengbang(towcomid,towtype,towcatid)
- }
-
- })
- function jifengbang(comid,type,catid){
- $("#dqlebiao_bt").html("<li class='jf_num'></li><li class='qiudui'><span>球队</span></li><li class='s_p_f'><span>胜</span><span>平</span><span>负</span></li><li class='jf'>积分</li>")
- if(huancundata[qharrmc+"_"+type] == undefined) {
- $.getScript('https://jf.botidata.com/jf/data/league/integral/'+comid+'.js?t=' + (new Date()).getTime().toString(), function () {
- var arr=Content
- huancundata[qharrmc+"_"+type]=arr
- if(arr == undefined){
- $('#dqlebiao').append("<p class='wxgss_img'><img src='"+imgurl+"www/img/no-content.png'><span>暂无相关数据</span></p>");
- }else{
- if(arr.length > 0){
- $.each(arr, function(index,v){
- var listHtml = "<ul class='biaonr'><li class='jf_num'><span>" + (index+1) + "</span></li><li class='qiudui'>" + v[1] + "</li><li class='s_p_f'><span>" + v[4] + "</span><span>" +v[5] + "</span><span>" + v[6] + "</span></li><li class='jf'>"+v[2]+"</li></ul>"
- $('#dqlebiao').append(listHtml);
- })
- }
- }
- });
- }else{
- $('#dqlebiao').html('')
- if(huancundata[qharrmc+"_"+type].length > 0) {
- $.each(huancundata[qharrmc+"_"+type], function (index, v) {
- var listHtml = "<ul class='biaonr'><li class='jf_num'><span>" + (index+1) + "</span></li><li class='qiudui'>" + v[1] + "</li><li class='s_p_f'><span>" + v[4] + "</span><span>" +v[5] + "</span><span>" + v[6] + "</span></li><li class='jf'>"+v[2]+"</li></ul>"
- $('#dqlebiao').append(listHtml);
- })
- }else{
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/no-content.png'><span>暂无相关数据</span></p>");
- }
- }
- }
- $(".add_jifeng li").mouseover(function(){
-
- $(".jqqh_lb").show()
- $("#dqlebiao_bt").show()
- $("#dqlebiao").show()
- $(".peiming_dq ul li").eq(0).addClass("qh_active").siblings().removeClass("qh_active");
- qharrmc=$(this).attr("data-py")
- $(this).addClass("active").siblings().removeClass("active")
- var xscatid=$(this).attr("data-catid")
- var xscomid=$(this).attr("data-comid")
- var xstype=''
- $(".jf_title_lb li").each(function(i,o){
- if($(o).attr("data-catid")==xscatid ){
- $(o).show()
- }else{
- $(o).hide()
- }
- });
- $('.jf_title_lb li[data-catid^='+xscatid+']').eq(0).addClass("active").siblings().removeClass("active")
- if(xscatid == "1"){
- $("#dqlebiao_bt").html("<li class='jf_num'></li><li class='qiudui'><span>球队</span></li><li class='s_p_f'><span>胜</span><span>平</span><span>负</span></li><li class='jf'>积分</li>")
- $(".jf_title_lb li").each(function(i,o){
- if($(o).hasClass("active")){
- xstype=$(o).attr("data-type")
- };
- });
- $(".peiming_dq").css("display","none")
- dyajax_zhu(xscomid,xstype,xscatid)
- }
- $(this).addClass("active").siblings().removeClass("active")
- })
- function dyajax_zhu(comid,type,catid) {
-
- $(".jqqh_lb").show()
- $("#dqlebiao_bt").show()
- $("#dqlebiao").show()
- $(".peiming_dq ul li").eq(0).addClass("qh_active").siblings().removeClass("qh_active");
- if(huancundata[qharrmc+"_"+type] == undefined) {
-
- $.getScript('https://jf.botidata.com/jf/data/league/integral/'+comid+'.js?t=' + (new Date()).getTime().toString(), function () {
- var arr=Content
-
- if(arr == undefined){
- huancundata[qharrmc+"_"+type]=[]
- }else{
- huancundata[qharrmc+"_"+type]=arr
- }
- $('#dqlebiao').html('')
-
- if(arr == undefined){
- $('#dqlebiao').append("<p class='wxgss_img'><img src='"+imgurl+"www/img/no-content.png'><span>暂无相关数据</span></p>");
- }else{
- if(arr.length > 0){
- $.each(arr, function(index,v){
- var listHtml = "<ul class='biaonr'><li class='jf_num'><span>" + (index+1) + "</span></li><li class='qiudui'>" + v[1] + "</li><li class='s_p_f'><span>" + v[4] + "</span><span>" +v[5] + "</span><span>" + v[6] + "</span></li><li class='jf'>"+v[2]+"</li></ul>"
- $('#dqlebiao').append(listHtml);
- })
- }
- }
- });
-
-
- }else{
- $('#dqlebiao').html('')
- if(huancundata[qharrmc+"_"+type].length > 0) {
- $.each(huancundata[qharrmc+"_"+type], function (index, v) {
- var listHtml = "<ul class='biaonr'><li class='jf_num'><span>" + (index+1) + "</span></li><li class='qiudui'>" + v[1] + "</li><li class='s_p_f'><span>" + v[4] + "</span><span>" +v[5] + "</span><span>" + v[6] + "</span></li><li class='jf'>"+v[2]+"</li></ul>"
- $('#dqlebiao').append(listHtml);
- })
- }else{
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/no-content.png'><span>暂无相关数据</span></p>");
- }
- }
- }
|