Ho applicato la funzione sulla timeline ma anche se metto la mail perfetta mi porta sempre nella sezione "errato"....posto il codice qui...
Codice PHP:
ffunction checkMail( mail ) {
var mailSplitted = mail.split( "@" );
if( mailSplitted.length == 2 &&
mailSplitted[0].length > 1 &&
mailSplitted[1].length > 3 ) {
var subSplitted = mailSplitted[1].split( "." );
if( subSplitted.length >= 2 ) {
var subPrefix = new String( "" );
for( var a = subSplitted.length - 2; a >= 0; a-- ) {
subPrefix += subSplitted[a];
}
if( subPrefix.length > 1 ) {
subPrefix = new String( subSplitted[ subSplitted.length - 1 ] );
if( subPrefix.length > 1 && subPrefix.length < 7 ) {
return true; gotoAndPlay("corretto");
}
}
}
}
return false; gotoAndPlay("errato");
} {
sul bottone ho messo
Codice PHP:
on (release) {
if (email ne "" ) {
gotoAndPlay("corretto");
loadVariablesNum("inserisci_mail.asp", 0, "POST");
} else {
gotoAndPlay("errato");
}
} {
????