function shoucang(){ alert( "Ctrl+D" ); } function searchKeyword(){ var keyword=$('#keyword').val(); var url='/News/index/cid/62'; if(keyword){ url+="/keyword/"+keyword; } url+='.html'; window.location.href = url; }

Name

Gender

Male Female

Phone No.

Email

Company

Message Contents

Please choose the language that you need
Please choose the language that you need.  Пожалуйста, выберите язык, который вы хотите!

function subMessage(){ var mobileRegx=/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/; var emailRegx=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; var name=$('#name').val(); //var sex=$('radio').val(); var sex = $("input[type='radio']:checked").val(); var mobile=$('#mobile').val(); var email=$('#email').val(); var company=$('#company').val(); var content=$('#content').val(); var fid=$('.fn_nav a[class="on"]').html(); var fid = "联系销售"; if((fid!="联系销售")&&(fid!="加盟合作")&&(fid!="求助投诉")&&(fid!="其他留言")){ alert('请选择留言类型'); window.location.reload(); } if(!name){ alert('请输入姓名'); $('#name').focus(); return false; } if((sex!="男")&&(sex!="女")){ alert('性别输入有误'); $('#sex').focus(); return false; } if(!mobileRegx.test(mobile)){ alert("手机号输入错误!"); $('#mobile').focus(); return false; } if(!emailRegx.test(email)){ alert("邮箱输入错误!"); $('#email').focus(); return false; } if(!company){ alert('请输入公司名称'); $('#company').focus(); return false; } if(!content){ alert('请输入留言内容'); $('#content').focus(); return false; } var url='/Product/leavemassage/cid/84.html'; $.ajax({ url:url, type: "post", dataType:"json", data: {name:name,sex:sex,mobile:mobile,email:email,content:content,company:company,fid:fid}, success:function(data){ alert(data.msg); if(data.code==1){ location.reload(); } }, error:function(){ alert('系统正在升级,暂无法留言'); } }); } $(function(){ $('.item').hover(function(){ $(this).find('.it_bg').stop(true,true).fadeIn(); },function(){ $(this).find('.it_bg').stop(true,true).fadeOut(); }) $('.fn_nav a').click(function(){ $('.fn_nav a').removeClass("on"); $(this).addClass("on"); }) }) function showDiv(sId){ var getId=$(sId); getId.height($('body').height()); getId.stop(true,true).show().stop(true,true).animate({opacity:'1'},200); var firstDiv=getId.find('div:first'); firstDiv.click(function(e){ e.stopPropagation(); }); getId.click(function(){ $(this).stop(true,true).hide().stop(true,true).animate({opacity:'0'},200); }); $('.closed').click(function(){ getId.stop(true,true).hide().stop(true,true).animate({opacity:'0'},200); }); } $(function(){ $('.nav li.last a').each(function(index){ $(this).click(function(){ showDiv('#popBox'); }) }) //$('.s_img').eq(4).find('img').remove(); //$('.s_img').eq(4).html(""); }) window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":["weixin","qzone","tqq","tsina","tqf","renren"],"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];