I have an email sign-up form that works fine. The only trouble is it immediately goes back to normal after you submit an email so you wonder if it really worked. It there a way to make a thank you message?
This is the code I’m using:
stop();
_root.fields.emailInput.text = "email address";
_root.fields.emailInput.onSetFocus = function() {
if (this.text == "email address") {
this.text = "";
}
};
_root.fields.emailInput.onKillFocus = function() {
if (this.text == "") {
this.text = "email address";
}
};
fscommand ("allowscale",false);
stop();
and on the submit button:
on (release) {
_root.fields.loadVariables("email.php", "POST");
_root.fields.emailInput.text = "email address";
_root.fields.emailInput.hscroll = 0;
_root.fields.emailInput.onSetFocus = function() {
if (this.text == "email address") {
this.text = "";
}
};
}