1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| <head>
<link rel="stylesheet" type="text/css" href="shadowbox.css"></script>
<script type="text/javascript" src="shadowbox.js"></script>
<script language="JavaScript">
function verifSelection() {
if(mail_form.zone_email.value == "ok") {
alert("Veuillez entrer votre adresse email");
mail_form.zone_email.focus();
return false;
}
var exp=new RegExp("^[\\w\\-]+(\\.[\\w\\-]+)*@[\\w\\-]+(\\.[\\w\\-]+)*\\.[\\w\\-]{2,}$", "i");
if(mail_form.zone_email.value !="ok" && !exp.test(mail_form.zone_email.value)){
alert("Adresse email non valide ");
mail_form.zone_email.focus();
return false;
}
Shadowbox.init({
// let's skip the automatic setup because we don't have any
// properly configured link elements on the page
skipSetup: true,
// include the html player because we want to display some html content
players: ["html"]
});
window.onload = function(){
// open a welcome message as soon as the window loads
Shadowbox.open({
content: '<div id="welcome-msg">Merci de votre confiance</div>',
player: "html",
title: "Information",
height: 350,
width: 500
});
};
}
</script>
</head> |
Partager