function setCB() { txt = document.xForm.result.value; window.clipboardData.setData("text",txt); alert("复制成功"); } function submitclick() { var netname=document.getElementById("netname").value; var netadd=document.getElementById("netadd").value; var netername=document.getElementById("netername").value; var netadd=document.getElementById("netadd").value; var netqq=document.getElementById("netqq").value; var e_mail=document.getElementById("e_mail").value; if (netname=="") { alert("网站名称为空"); return false; } if(netadd=="") { alert("网站地址为空"); return false; } var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" //ftp的user@ + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // IP形式的URL- 199.194.52.184 + "|" // 允许IP和DOMAIN(域名) + "([0-9a-z_!~*'()-]+\.)*" // 域名- www. + "([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\." // 二级域名 + "[a-z]{2,6})" // first level domain- .com or .museum + "(:[0-9]{1,4})?" // 端口- :80 + "((/?)|" // a slash isn't required if there is no file name + "(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$"; var re = new RegExp(strRegex); if(!re.test(netadd)) { alert("网址格式错误"); return false; } if (netername=="") { alert("站长名称为空"); return false; } if (netqq=="") { alert("QQ/MSN为空"); return false; } if(e_mail=="") { alert("请填写电子邮件") } var found=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; if(!found.test(e_mail)) { alert("电子邮件格式不正确"); return false; } $.ajax({ type: "POST", url: "/links/media/applylink.ashx?netname="+escape(netname)+"&netadd="+netadd+"&netername="+escape(netername)+"&netqq="+netqq+"&e_mail="+e_mail, dataType: "html", success: function (msg) { if(msg!=""){ alert("添加成功"); } else{ alert("添加失败"); } } }); }
欢迎来到365bet世界足球冠军! 登录|注册|RSS|最新文章|地图|收藏

申请友情链接

友情链接申请,请发送邮件注明:站名/网址/PR/类别,要求Alexa排名25万内,PR5以上。

内容及项目合作,可致电联系电话详谈。

申请资料

网站名称:
网站地址:
站长名称:
MSN/QQ:
E-Mail:
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ffcb8a0f6f14bb3d10c8f5582871efe9e' type='text/javascript'%3E%3C/script%3E"));