$(document).ready(function(e){var indexof=$(".leftlihover").index();$(".newabout_container_left ul li").mouseenter(function(e){if($(".newabout_container_left ul li").hasClass("leftlihover")){indexof=$(".leftlihover").index();$(".newabout_container_left ul li").removeClass("leftlihover");$(this).addClass("leftlihover")}else{$(this).addClass("leftlihover")}});$(".newabout_container_left ul li").mouseleave(function(e){$(".newabout_container_left ul li").removeClass("leftlihover")});$(".newabout_container_left").mouseleave(function(e){$(".newabout_container_left ul li").removeClass("leftlihover");$(this).find("li").eq(indexof).addClass("leftlihover")});$(".newsdllqfl_li").click(function(e){if($(this).parent("li").children(".newsdllqfl_li_neirong").css("display")=='none'){$(this).children(".xialaselect").css("background-position","-5px -5px");$(this).parent("li").children(".newsdllqfl_li_neirong").slideToggle(1000)}else{$(this).children(".xialaselect").css("background-position","-55px -5px");$(this).parent("li").children(".newsdllqfl_li_neirong").slideToggle(500)}});$(".newabout_form-control").focus(function(e){var color=$(this).parent().find(".newabout_tishitext").css("background-color");$(this).css("border-color",color)}).blur(function(){$(this).css("border-color","")});var xiaoshudiani=1;$(".newshelqbtn_tishi_btn").click(function(e){$(".newshelqbtn_tishi").css("display","none");$(".newzuiwaiceng").css("z-index","-1")});$(".new_shenqingsl").click(function(e){if($(".newabout_form-control").eq(0).val()!=''&&$(".newabout_form-control").eq(1).val()!=''&&$(".newabout_form-control").eq(2).val()!=''&&$(".newabout_form-control").eq(3).val()!=''){$(".newshelqbtn_tishi").addClass("add_animation");xiaoshudiani=1;$(".newzuiwaiceng").css("z-index","9990");var msg=$(".newshelqbtn_tishi_text");$(".newshelqbtn_tishi").css({"display":"block","top":($(window).height()-$(".newshelqbtn_tishi").height())/2,"left":($(window).width()-$(".newshelqbtn_tishi").width())/2});msg.html('正在努力提交您的网站信息，请耐心等待结果。');var zj=setInterval(zhuijiadian,1000);function zhuijiadian(){if(xiaoshudiani<3){$(".newshelqbtn_tishi_text").append('。');xiaoshudiani++}else{$(".newshelqbtn_tishi_text").html('正在努力提交您的网站信息，请耐心等待结果。');xiaoshudiani=1}}var webname=$("#webname").val();var weburl=$("#weburl").val();var info=$("#addinfo").val();var imgcode=$("#imgcode").val();$.ajax({url:"https://www.daohangtx.com/config/sendmail/sendmail.php",type:"POST",data:{"imgcode":imgcode,"title":"【网站收录申请】："+webname+"----"+weburl,"content":"内容介绍:"+info},success:function(data){clearInterval(zj);$(".newshelqbtn_tishi_btn").removeAttr("disabled");msg.html(data);addCode()},error:function(XMLHttpRequest,textStatus){clearInterval(zj);$(".newshelqbtn_tishi_btn").removeAttr("disabled");msg.html("发送失败!错误参数【"+XMLHttpRequest.statusText+"】");addCode()}})}else{alert('请正确填写相关信息！')}});$(".nnewshoulu_code").click(function(e){addCode()});function addCode(){var d=new Date();var time=d.getTime();$(".nnewshoulu_code").attr("src","/config/sendmail/img_fontcode.php?data="+time)}$(window).resize(function(e){if($(".newshelqbtn_tishi").css("display")=='block'){$(".newshelqbtn_tishi").css({"top":($(window).height()-$(".newshelqbtn_tishi").height())/2,"left":($(window).width()-$(".newshelqbtn_tishi").width())/2})}});});