春らしく…嬉しいできご…
[2012-03-08 23:37:19][
ブログ記事へ]
DD_roundiesaddRule('divarrondi', '15px');
jQuery(document)ready(function($){
$("#envoyer")click(function() {
valid = true;
var tab_error = new Array();var message_error_web='';var message_error_mail='';var haut_mess_form = true;message_error_coche='';message_error_question='';message_error_captcha='';tab_error[0] = "";tab_error[1] = ""; if($("#mail_input")val() == "") {
$("#mail_input")css("backgroundcolor","#");
$("#span_mail")css("color","#");$("#mail_input")next()text("");tab_error[2] = "Mail";
valid = false;
} else if(!$("#mail_input")val()match(/^([az09_]|\|\)+@(([az09_]|\)+\)+[az]{2,7}$/)){
$("#mail_input")css("backgroundcolor","#");
$("#span_mail")css("color","#");$("#mail_input")next()text("");message_error_mail = "L'email entré n'est pas valide";
tab_error[2] = "";
valid = false;
} else {
$("#mail_input")css("backgroundcolor","");
$("#span_mail")css("color","");
$("#mail_input")next()text("");
tab_error[2] = "";
message_error_mail = "";
}tab_error[3] = "";if($("#objet_input")val() == "") {
$("#objet_input")css("backgroundcolor","#");
$("#span_objet")css("color","#");$("#objet_input")next()text("");tab_error[4] = "Objet";
valid = false;
} else {
$("#objet_input")css("backgroundcolor","");
$("#span_objet")css("color","");
$("#objet_input")next()text("");
tab_error[4] = "";
}if($("#message_input")val() == "") {
$("#message_input")css("backgroundcolor","#");
$("#span_message")css("color","#");$("#message_input")next()text("");tab_error[5] = "Message";
valid = false;
} else {
$("#message_input")css("backgroundcolor","");
$("#span_message")css("color","");
$("#message_input")next()text("");
tab_error[5] = "";
}haut_mess_form = false; if(valid == false) {
$("#formulaire_contact")animate({ backgroundColor "#" }, 100);
var message = "Veuillez renseigner le(s) champs ";
for (var i=0; i < tab_errorlength; ++i) {
if(tab_error[i] != "") {
message += tab_error[i]+", ";
}
}
message = messagesubstring(0, messagelength2);
var espace_coche = "";
if(message_error_mail != "") {
message += message_error_mail;
espace_coche = "";
}
if(message_error_coche != "") {
message += espace_coche+message_error_coche;
}
if(message_error_question != "") {
message += espace_coche+message_error_question;
}
if(message_error_captcha != "") {
message += espace_coche+message_error_captcha;
}
if(message_error_web != "" && message_error_mail != "") {
message += ""+message_error_web;
} else {
message += message_error_web;
}
if(haut_mess_form == true) {
$("#message_error")css("display","block");
$("#message_error")html(message);
}
}
$("#formulaire_contact")animate({ backgroundColor "#" }, 800);
return valid;
});
});
次男に言われてしまった もっと春らしいBlogにしたら?なんか春っぽくないでぇ〜 そんなにすぐにいろんな変更ができないので、取り急ぎチューリップにしました さて、今日はとーっても嬉しいできごとがありました Face []
続きを見る