Email地址确认Script

类别:网站制作 点击:0 评论:0 推荐:

--------------------------------------------------------------------------------

<!--One step to installing this script-->

<!--1)Simply copy everything below, and insert into BODY section of page-->

<!--Add other form elements into form as desired-->

<form name="validation" onSubmit="return checkbae()">

Please input a valid email address:<br>

<input type="text" size=18 name="emailcheck">

<input type="submit" value="Submit">

</form>

<script nguage="JavaScript1.2">

/*

Advanced Email Check credit-

By Website Abstraction (www.wsabstract.com)

Over 200+ free scripts here!

*/

var testresults

function checkemail(){

var str=document.validation.emailcheck.value

var filter=/^.+@.+\..{2,3}$/

if (filter.test(str))

testresults=true

else{

alert("Please input a valid email address!")

testresults=false

}

return (testresults)

}

</script>

<script>

function checkbae(){

if (document.layers||document.all)

return checkemail()

else

return true

}

</script>

<p align="center"><font face="arial" size="-2">This free script provided by</font><br>

<font face="arial, helvetica" size="-2"><a href="Website'>http://wsabstract.com">Website

Abstraction</a></font></p>
 

--------------------------------------------------------------------------------

   

本文地址:http://com.8s8s.com/it/it31013.htm