Results 1 to 8 of 8

Thread: I want text box to be cleared on click just once...

Threaded View

  1. #6
    Addicted Member spyk3's Avatar
    Join Date
    Apr 2009
    Location
    Dothan, AL
    Posts
    218

    Re: I want text box to be cleared on click just once...

    psuedocode:

    if textbox color = gray then
    clear textbox
    textbox color = black
    end if
    And What about when there is text in the box? then it will still dim*? is this what you want?
    a username should never be username, it's just really bad db'ing

    *The text in the box will still go gray, reguardless of what's in it.
    -The code I gave you is more like a normal username interface, whereby if text is typed in box, then it will stay until it is backspaced or deleted out, in which case, when the box loses focus, it will return to a dim gray word of "username"
    -Also with that pseudo code, the word "username" can't be replaced in the textbox
    Last edited by spyk3; Mar 2nd, 2010 at 09:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width