Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Input Background

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #32525
    ChrisBull
    Member

    I Think that Chris did a tutorial on this once but i can’t seem to find it.
    Does anyone know how to have text as a background to a form? So for the input box of Email, the word email is the background of the input box, I don’t want it to be the value of the box as i want it to still be there while the user is typing their value.

    Many Thanks For Your Time!
    Chris

    #48919
    cybershot
    Participant

    why would you want that? that could make it hard for them to read what they are typing. It could also make your form look like it isn’t working. This isn’t normal form behavior. I would recommend that you not do that

    #48927
    ChrisBull
    Member

    Im trying to create what tumblr do
    Tumblr

    #48931
    cybershot
    Participant

    well for that, I am sure they used jquery for that. What I would do is view the source code and see if you can find the script they used to create the affect

    #48932
    ChrisBull
    Member

    Yeah, I tried that already – It’s pretty well hidden

    #48935
    ChrisBull
    Member

    Wait, Just missed it the first time, found it now

    #48936
    ChrisBull
    Member

    Ahh, it’s a label with a z index, and the input is a .png with opacity…

    #48937
    cybershot
    Participant

    put it together and show us your version when you get it working

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.