1 <form name="form1" method="POST" action="add.php"> 2 <table width="213" border="0" cellpadding="0" cellspacing="0" background="../images/zz13.gif"> 3 <tr> 4 <td width="40" height="20" align="left" valign="top">姓名:</td> 5 <td width="173" align="left" valign="top"><input type="text" name="si_name" /></td> 6 </tr> 7 <tr> 8 <td height="20" align="left" valign="top">手机:</td> 9 <td align="left" valign="top"><input type="text" name="si_tel" /></td> 10 </tr> 11 <tr> 12 <td height="20" align="left" valign="top">楼盘:</td> 13 <td align="left" valign="top"><input type="text" name="si_bname" /></td> 14 </tr> 15 <tr> 16 <td height="20" align="left" valign="top">邮箱:</td> 17 <td align="left" valign="top"><input type="text" name="email" /></td> 18 </tr> 19 <tr> 20 <td height="20" align="left" valign="top">城市:</td> 21 <td align="left" valign="top"><select name="si_region"> 22 <option value="上海" selected="selected">上海</option> 23 <option value="南京">南京</option> 24 <option value="广州">广州</option> 25 <option value="深圳">深圳</option> 26 <option value="杭州">杭州</option> 27 <option value="苏州">苏州</option> 28 <option value="珠海">珠海</option> 29 <option value="其他">其他</option> 30 </select> </td> 31 </tr> 32 <tr> 33 <td height="22" align="left" valign="top">性别:</td> 34 <td align="left" valign="top"><input type="radio" name="si_sex" value="先生" />先生 35 <input type="radio" name="si_sex" value="女士" />女士</td> 36 </tr> 37 <tr> 38 <input type="hidden" name="ok" value="ok" /> 39 <td height="60" colspan="2" align="center" valign="top"><input name="image" type="image" onclick="return check()" src="../images/zz9.gif" mce_src="images/zz9.gif" width="144" height="30" img="img"/></td> 40 </tr> 41 </table> 42 </form>
1 <!--=========================Google==========================================--> 2 <mce:script type="text/javascript"><!-- 3 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); 4 document.write(unescape("%3Cscript src=‘" + gaJsHost + "google-analytics.com/ga.js‘ type=‘text/javascript‘%3E%3C/script%3E")); 5 // --></mce:script> 6 <mce:script type="text/javascript"><!-- 7 try { 8 var pageTracker = _gat._getTracker("UA-3919763-4"); 9 pageTracker._trackPageview(); 10 } catch(err) {} 11 // --></mce:script> 12 <!--===================================================================--> 13 <!--===============GS==========start================--> 14 <mce:script src="//www.webdissector.com/js/gs.js" mce_src="http://www.webdissector.com/js/gs.js" type=‘text/javascript‘></mce:script> 15 <mce:script type=‘text/javascript‘><!-- 16 17 if(window.GridsumWebDissector){ 18 var _gsTracker =GridsumWebDissector.getTracker(‘GWD-000126‘); //每次我给你的ID号。 19 _gsTracker.setOriginalUrl("http://www.boloni.cn/boloni/zt/100523/rui/bm.htm"); //那个页面的不分渠道的URL 20 _gsTracker.enableHeatmap(); 21 _gsTracker.setDocWidth(980); 22 _gsTracker.setPageVersion("ver20100510"); //填入当前日期 23 _gsTracker.track(); 24 } 25 // --></mce:script> 26 <!--===============GS==========end================--> 27 28 <SCRIPT LANGUAGE="JavaScript"> 29 <!-- 30 function check() 31 { 32 33 34 var Obj = document.getElementsByName("si_sex"); 35 for(i=0;i<Obj.length;i++){if(Obj[i].checked){break}}; 36 if(i==Obj.length){alert("请选择性别!");return false}else{} 37 38 if (document.form1.si_name.value==""){ 39 alert("请填写真实姓名"); 40 return false; 41 } 42 if (document.form1.si_tel.value==""){ 43 alert("请填写手机号码"); 44 return false; 45 } 46 var myreg = /^(((13[0-9]{1})|159|(15[0-9]{1}))+/d{8})$/; 47 if(!myreg.test(document.form1.si_tel.value)){ 48 alert(‘请输入有效的手机号码!‘); 49 document.form1.si_tel.focus(); 50 return false; 51 } 52 if (document.form1.si_bname.value==""){ 53 alert("请填写楼盘名称"); 54 return false; 55 } 56 if (document.form1.email.value==""){ 57 alert("请填写EMAIL"); 58 return false; 59 } 60 if (!document.form1.email.value.match(/^[/w]{1}[/w/./-_]*@[/w]{1}[/w/-_/.]*/.[/w]{2,4}$/i) ) { 61 alert ("请输入有效合法的E-mail地址 !"); 62 return false; 63 } 64 } 65 //--> 66 </SCRIPT>
转载自:http://blog.csdn.net/dongsg11200/article/details/5598807
时间: 2024-10-18 08:01:19