$(function(){ /*友情链接加间隔*/ $("#friendly-links li:not(:last)").after("|"); /*滚动条*/ $(".scrollBar").initScroll(); //产品分类点击切换 if($("#prod-cate-list").size()){ $("#prod-cate-list").initTabs("#prod-cate-images"); } //表格背景 $("#net-result-1 tr:odd td").css("background", "#F8F8F8"); $("#net-result-1 tr:even td").css("background", "#EAF7E5"); $("#net-result-2 tr:odd td").css("background", "#F8F8F8"); $("#net-result-2 tr:even td").css("background", "#EAF7E5"); //网点 $("#current-point").click(function(event){ event.stopPropagation(); $("#net-select-item, #net-select-item2").show(); }); $(document).click(function(){ $("#net-select-item, #net-select-item2").hide(); }); $("#net-select-item, #net-select-item2").click(function(event){ event.stopPropagation(); }); $(".select-item-list li a, #net-select-item2 li a").click(function(event){ $(".select-item-list li, #net-select-item2 li").removeClass("current"); $(this).parent("li").addClass("current"); $("#current-point").text($(this).text()); $("#result-point").text($(this).text()); $("#net-select-item, #net-select-item2").hide(); var country=$(this).text(); var list=$("#net-result-2"); data={country:country,cmd:'foreign_city'}; $.ajax({ type:"POST", data:data, url:'../include/ajax.php', dataType:"json", success:function(msg){ if(msg.no==0){ list.find("tr").each(function(){ $(this).remove(); }) var citys=msg.msg; html=""; html+="