BlackEagle Yönetici
Zodyak : Mesaj Sayısı : 5037 Yaş : 103 Nereden : Belamı Arıyorsun? Kayıt tarihi : 12/07/08 Rep Puanı : 2 Rep Puanı : 118
| Konu: E-Mail Perş. Ekim 02, 2008 5:34 pm | |
| - Kod:
-
<****** LANGUAGE="Javascript"> <!-- // The Javascript Source!! http://www.erenet.net // With modifications made by Cream Software // Begin ******** emailCheck() { txt=document.isn.email.value; if ((txt.indexOf(" ")!=-1)) { alert("Warning! Email address cannot contain spaces!"); return; } if ((txt.indexOf("@")==-1)) { alert("Warning! Email address needs to contain '@' character!"); return; } if (txt.indexOf("@")<2) { alert("Warning! The email address is incorrect!nPlease check its part before '@' character!"); return; } if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)&&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)&&(txt.indexOf(".mil")<5)&&(txt.indexOf(".edu")<5)&&(txt.indexOf(".pl")<5)) { alert("Warning! The email address is incorrect!nPlease check its part after '@' character.nThere should be a prefix e.g. .com."); return; } parent.location_dot_href='mailto:' + txt; } // End --> </******> | |
|