How is pre-content added to post edit box? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    How is pre-content added to post edit box?

    avatar
    boffer10
    Forumember


    Male Posts : 311
    Reputation : 10
    Language : english
    Location : Go Seahawks!

    Solved How is pre-content added to post edit box?

    Post by boffer10 July 5th 2012, 8:05 am

    When I open up a post edit box, there is content always there that says 'Your Text Here'. When I click inside the box to begin typing, it goes away. Where or how is that done?

    How is pre-content added to post edit box? 124010

    TIA
    Mike
    Mike
    Hyperactive


    Male Posts : 4255
    Reputation : 471
    Language : English, HTML, CSS
    Location : Loveland, Colorado

    Solved Re: How is pre-content added to post edit box?

    Post by Mike July 5th 2012, 3:11 pm

    From what I know, you need to find the form element in the templates and add this to it:
    Code:
    value="Your Text Here."

    then also add:
    Code:
    onFocus="this.value=''

    This may not be the only way though, just the only way that I know Wink
    avatar
    boffer10
    Forumember


    Male Posts : 311
    Reputation : 10
    Language : english
    Location : Go Seahawks!

    Solved Re: How is pre-content added to post edit box?

    Post by boffer10 July 5th 2012, 10:15 pm

    YES! I spent forever looking through the CSS. I didn't think to look at JS.

    How is pre-content added to post edit box? 3170584802

    This one's on me! Razz

    Solved.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How is pre-content added to post edit box?

    Post by SLGray July 6th 2012, 12:23 am

    Topic Solved & Locked



    How is pre-content added to post edit box? Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.