Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Forms

  1. #1
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Forms

    Okay, with text boxes in forms, you know how you can have a value before hand, how do you make it gray writing and when you click it, the writing disappears.

    Thanks in advance,
    Andy

    p.s I might add more questions to this topic as I come along to them
    Last edited by Andyroo123; 11-07-2009 at 11:58 PM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Try this:
    Code:
    <input type="text" value="Type" style="font-style: italic;color: grey;" onfocus="this.style.fontStyle='normal';this.style.color='black';this.value=''" onblur="this.style.fontStyle='italic';this.style.color='grey';"/>
    Last edited by Nile; 11-05-2009 at 11:06 PM.
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    Andyroo123 (11-05-2009)

  4. #3
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Thanks, thats perfect

  5. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Your welcome. You said you might have more questions? If not:
    Please set the status of your topic to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"
    Jeremy | jfein.net

  6. #5
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Okay, what about that, but in a text area? because where you put the text is different.

  7. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Just put the following in the attributes of the text area:
    Code:
    style="font-style: italic;color: grey;" onfocus="this.style.fontStyle='normal';this.style.color='black';this.value=''" onblur="this.style.fontStyle='italic';this.style.color='grey';"
    Jeremy | jfein.net

  8. #7
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    I thought so, I was just checking

    Cheers.

  9. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Great! Again, glad to help you!
    Please set the status of your topic to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"
    Jeremy | jfein.net

  10. #9
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    You know how you set it to resolved, can you change it back afterwards, or should I just create a new topic?

  11. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Create a new topic.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

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