0 Replies Latest reply on Feb 23, 2007 6:10 PM by Newsgroup_User

    Having small problem with cursor?

    Level 7
      HI! I am having a small problem with the cursor not showing up in a field
      when select. I do have an on focus script so I am not sure what is causing
      the probem. the two parts in question is below. can someone do a small
      review and let me know why it is not giving the default blicking cursor when
      selected?

      Here is the both sections of my script.

      //-------------<Set Default Text for Fields>------\\
      function setdefaulttextforfields (){
      contactForm.userName.text = "-Enter Your Full Name Here-";
      contactForm.userEmail.text = "-Enter Your Email Address Here-";
      contactForm.userSubject.text = "-Enter Your Subject Here-";
      contactForm.userComments.text = "-Enter Your Message Here-";
      contactForm.userName.setStyle("color", 0x6f6f6f);
      contactForm.userEmail.setStyle("color", 0x6f6f6f);
      contactForm.userSubject.setStyle("color", 0x6f6f6f);
      contactForm.userComments.setStyle("color", 0x6f6f6f);
      }

      //-------------<End Of Set Default Text for Fields>------\\


      //-------------------<Fields on Focus>-----------------\\
      //------userName------\\
      contactForm.userName.onSetFocus = function(){
      if((this.text == "-Enter Your Full Name Here-") || (this.text == "*** This
      Field Is Manditory ***")){
      this.setStyle("color", 0x6F6F6F)
      this.text = "";
      }
      }
      contactForm.userName.onKillFocus = function(){
      if(this.text ==""){
      this.setStyle("color", 0xC83F3F)
      this.text = "*** This Field Is Manditory ***";
      }
      }

      //------userEmail------\\
      contactForm.userEmail.onSetFocus = function(){
      if((this.text == "-Enter Your Email Address Here-") || (this.text == "***
      This Field Is Manditory ***")){
      this.setStyle("color", 0x6F6F6F)
      this.text = "";
      }
      }
      contactForm.userEmail.onKillFocus = function(){
      if(this.text ==""){
      this.setStyle("color", 0xC83F3F)
      this.text = "*** This Field Is Manditory ***";
      }
      }

      //------userSubject------\\
      contactForm.userSubject.onSetFocus = function(){
      if((this.text == "-Enter Your Subject Here-") || (this.text == "*** This
      Field Is Manditory ***")){
      this.setStyle("color", 0x6F6F6F)
      this.text = "";
      }
      }
      contactForm.userSubject.onKillFocus = function(){
      if(this.text ==""){
      this.setStyle("color", 0xC83F3F)
      this.text = "*** This Field Is Manditory ***";
      }
      }

      //------userComments------\\
      contactForm.userComments.onSetFocus = function(){
      if((this.text == "-Enter Your Message Here-") || (this.text == "*** This
      Field Is Manditory ***")){
      this.setStyle("color", 0x6F6F6F)
      this.text = "";
      }
      }

      contactForm.userComments.onKillFocus = function(){
      if(this.text ==""){
      this.setStyle("color", 0xC83F3F)
      this.text = "*** This Field Is Manditory ***";
      }
      }

      }
      //-------------------<End Of Fields on Focus>-----------------\\