//搜索 // 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.open(searchurl+keyword+key); }); //美食搜索 $("#mssearch").click(function (e) { var keyword = $("#mssearchkeyword").val(); window.open(searchurl+keyword+key); }); //页脚搜索 $("#foot_search").click(function (e) { var foot_keyword = $("#foot-keyword").val(); window.open(searchurl+foot_keyword+key); }); $(".chot > a").click(function (e) { var keyword = $(this).text(); window.open(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"); } } });