//搜索 // var searchurl = 'https://www.artalde.net/plus/search.php?q='; var key = "&x&s=1928172344827015587"; var searchurl = 'https://www.artalde.net/s_s/cse/search?q='; $("#search").click(function (e) { var keyword = $("#searchkeyword").val(); window.location.href=searchurl+keyword+key; }); //页脚搜索 $("#foot_search").click(function (e) { var foot_keyword = $("#foot-keyword").val(); window.location.href=searchurl+foot_keyword+key; }); $(".chot > a").click(function (e) { var keyword = $(this).text(); window.location.href=searchurl+keyword+key; }); $(".part_content2 > a").each(function (index,e) { var fcolor = index + 1; if(fcolor % 3 == 0) { $(this).attr("class","fcolor1"); if(fcolor % 6 == 0) { $(this).attr("class","fcolor2"); } } }); $(".amlj > a").last().attr("class","current"); $(".amlj > a").last().attr("href","javascript:void(0);"); $(function(){ $('.courier_panel').eq(0).show(); var tab_index = -1; $('.tab label').on('click',function(){ $('.courier_panel').hide(); $('.tab label').removeClass('tab_atv'); $(this).addClass('tab_atv'); tab_index = $(this).index(); $('.courier_panel').eq(tab_index).show(); }); $(".ztnava a").click(function(){ var nav_id = $(this).index(); $(this).siblings().css({"background":"none","color":"#fff","text-decoration":"none"}) $(this).css({"background":"#D4166C","color":"#fff","text-decoration":"none"}) $(".ztcon .ztmk").eq(nav_id).prevAll().css("display","none"); $(".ztcon .ztmk").eq(nav_id).css("display","block"); $(".ztcon .ztmk").eq(nav_id).nextAll().css("display","none"); }) $(".ztnava a").hover(function(){ $(this).css("cursor","pointer"); }) });