AS masters please have a peak ;)

  • cristake
  • Novice
  • Novice
  • cristake
  • Posts: 23

Post 3+ Months Ago

Having troubles with changing some things on a contact form.
I have 5 inupt text fields:
name, email, phone, fax, comments and i wanna change it to look like this:
name -> nume
phone -> telefon
fax -> adresa
comments -> mesaj
This is the actions script for the input text fields
Code: [ Select ]
t2.onSetFocus = function() {
    if (t2_2 == "enter your email") {
        t2_2 = "";
    }
};


t2.onKillFocus = function() {
    if (t2_2 == "") {
        t2_2 = "enter your email";
    }
};
t3.onSetFocus = function() {
    if (t3_2 == "e-mail") {
        t3_2 = "";
    }
};


t3.onKillFocus = function() {
    if (t3_2 == "") {
        t3_2 = "e-mail";
    }
};
t4.onSetFocus = function() {
    if (t4_2 == "phone") {
        t4_2 = "";
    }
};


t4.onKillFocus = function() {
    if (t4_2 == "") {
        t4_2 = "phone";
    }
};
t5.onSetFocus = function() {
    if (t5_2 == "fax") {
        t5_2 = "";
    }
};


t5.onKillFocus = function() {
    if (t5_2 == "") {
        t5_2 = "fax";
    }
};
t6.onSetFocus = function() {
    if (t6_2 == "comments") {
        t6_2 = "";
    }
};


t6.onKillFocus = function() {
    if (t6_2 == "") {
        t6_2 = "comments";
    }
};
  1. t2.onSetFocus = function() {
  2.     if (t2_2 == "enter your email") {
  3.         t2_2 = "";
  4.     }
  5. };
  6. t2.onKillFocus = function() {
  7.     if (t2_2 == "") {
  8.         t2_2 = "enter your email";
  9.     }
  10. };
  11. t3.onSetFocus = function() {
  12.     if (t3_2 == "e-mail") {
  13.         t3_2 = "";
  14.     }
  15. };
  16. t3.onKillFocus = function() {
  17.     if (t3_2 == "") {
  18.         t3_2 = "e-mail";
  19.     }
  20. };
  21. t4.onSetFocus = function() {
  22.     if (t4_2 == "phone") {
  23.         t4_2 = "";
  24.     }
  25. };
  26. t4.onKillFocus = function() {
  27.     if (t4_2 == "") {
  28.         t4_2 = "phone";
  29.     }
  30. };
  31. t5.onSetFocus = function() {
  32.     if (t5_2 == "fax") {
  33.         t5_2 = "";
  34.     }
  35. };
  36. t5.onKillFocus = function() {
  37.     if (t5_2 == "") {
  38.         t5_2 = "fax";
  39.     }
  40. };
  41. t6.onSetFocus = function() {
  42.     if (t6_2 == "comments") {
  43.         t6_2 = "";
  44.     }
  45. };
  46. t6.onKillFocus = function() {
  47.     if (t6_2 == "") {
  48.         t6_2 = "comments";
  49.     }
  50. };



The BIG PROBLEM: When i change the text written in the AS and the ones in the input text fields with the ones i want..... the onKillFocus stops working
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.