| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: May 2009 Ort: London
Beiträge: 4
| Kontaktformular und Bestaetigungstext
Hallo, ich habe hier einen Button der Submit heisst auf dem ich ein paar Pruefungen durchlaufen lasse und wenn alles korrekt ist der Inhalt eines Kontaktformulars an die PHP Datei "Contact" gesendet wird. Jedoch moechte ich gerne das [f]nach dem Senden [/f]die Felder in Variable T1 steht "Your Name" in T2 "e-mail" in T3 "phone" in T4 "comment" die Felder folgenden Text erhalten alle ersten 3 "sent..." und im Comment Feld "Thank You" Dafuer habe ich folgendes im Frame geschrieben: _root.cont.cont2.txt.t11.onSetFocus = function() { if (_root.cont.cont2.txt.t1=="your name"){ _root.cont.cont2.txt.t1=""; }} _root.cont.cont2.txt.t11.onKillFocus = function() { if (_root.cont.cont2.txt.t1==""){ _root.cont.cont2.txt.t1="your name"; }} _root.cont.cont2.txt.t22.onSetFocus = function() { if (_root.cont.cont2.txt.t2=="e-mail"){ _root.cont.cont2.txt.t2=""; }} _root.cont.cont2.txt.t22.onKillFocus = function() { if (_root.cont.cont2.txt.t2==""){ _root.cont.cont2.txt.t2="e-mail"; }} _root.cont.cont2.txt.t33.onSetFocus = function() { if (_root.cont.cont2.txt.t3=="phone"){ _root.cont.cont2.txt.t3=""; }} _root.cont.cont2.txt.t33.onKillFocus = function() { if (_root.cont.cont2.txt.t3==""){ _root.cont.cont2.txt.t3="phone"; }} _root.cont.cont2.txt.t44.onSetFocus = function() { if (_root.cont.cont2.txt.t4=="comments"){ _root.cont.cont2.txt.t4=""; }} _root.cont.cont2.txt.t44.onKillFocus = function() { if (_root.cont.cont2.txt.t4==""){ _root.cont.cont2.txt.t4="comments"; }} submit.onPress = function() { if (t4 === "comments" || t4 === "* Your text, please *" || t4 === "") { t4 = "* Your text, please *"; } else { s_nachricht = 1; } if (t1 === "your name" || t1 === "* Your name, please *" || t2 === "") { t1 = "* Your name, please *"; } else { s_nachname = 1; } if (t2.indexOf("@") == -1 || t2.indexOf(".") == -1 || t2 == "e-mail") { t2 = "* Unknown E-mail *"; } else { s_mail = 1; } if (s_nachricht == 1 && s_nachname == 1 && s_mail == 1) { gesendet = ""; s_t4 = 2; s_t1 = 2; s_t2 = 2; loadVariablesNum("contact.php", 0, "GET"); gotoAndStop(2); tellTarget ("txt") { t1 = "sent..."; t2 = "sent..."; t3 = "sent..."; t4 = "Thank You"; } } }; Aber es funktioniert nicht!!! Wo ist der Fehler? Vielen Dank im voraus |
| | |
| | #2 (permalink) |
| experience++; Registriert seit: Jul 2002 Ort: Düsseldorf
Beiträge: 11.347
|
hi, poste doch mal deinen code mit tags damit er leserlicher und übersichtlicher wird. ich hab auf die schnelle nur tellTarget und loadVariablesNum gesehen. speziell tellTarget ist aber sehr veraltet! wo haste das script denn ausgebraben? ![]() cheers, sal
__________________
Chuck Norris hat den Flash Player für alle mobilen Betriebssysteme! |
| | |
![]() |
| Lesezeichen |
| Stichworte |
| fehler, kontaktformular, text |
| Themen-Optionen | |
| Ansicht | |
| |