Hallo,ich habe in meinem Archiv folgenden code gefunden und möchte einen löschenButton hinzufügen "but_delete". Kann das script zwar anpassen und einigermaßen verstehen, aber mit dem Button, der will nicht.
Wer kann mir hier helfen.
Danke schon mal im voraus.
hrsflash
PHP-Code:
System.useCodePage = true;
//
plz.restrict = "0-9";
//
_root.onLoad = function() {
_root.mc_fehler._visible = false;
_root.firma.text = "";
_root.name.text = "";
_root.str.text = "";
_root.ort.text = "Ihr Wohnort";
_root.plz.text = "Ihre PLZ";
_root.email.text = "Ihre eMailadresse";
_root.nachricht.text = "Ihre Mitteilung an uns...";
};
//
textfeld = new Array();
textfeld[0] = "firma";
textfeld[1] = "name";
textfeld[2] = "str";
textfeld[3] = "ort";
textfeld[4] = "plz";
textfeld[5] = "email";
textfeld[6] = "nachricht";
//
for (i=0; i<textfeld.length; i++) {
_root[textfeld[i]].onSetFocus = function() {
this.backgroundColor = 0xeeeeee;
if (_root[this._name]) {
_root[this._name].text = "";
_root[this._name] = false;
}
};
_root[textfeld[i]].onKillFocus = function() {
this.backgroundColor = 0xFFFFFF;
};
}
//
String.prototype.leer = function() {
for (i=0; i<this.length; i++) {
if (this.charCodeAt(i)>32) {
return true;
}
}
};
//
but_senden.onRelease = function() {
if (txt_email.indexOf("@") == -1 || txt_email.length<6 || _root.name.text.leer() || _root.nachricht.text.leer()) {
_root.mc_fehler._visible = true;
} else {
_root.mc_fehler._visible = false;
loadVariablesNum("http://www.domain.de/senden.php", 0, "GET");
}
};