Input-box  says  in "username" 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

    Input-box says in "username"

    avatar
    Guest
    Guest


    Solved Input-box says in "username"

    Post by Guest November 10th 2011, 5:44 pm

    How to do in the "Input" that you put your username saying in the "username" and just click the box to disappear and putting your name.
    avatar
    Guest
    Guest


    Solved Re: Input-box says in "username"

    Post by Guest November 10th 2011, 6:06 pm

    avatar
    Guest
    Guest


    Solved Re: Input-box says in "username"

    Post by Guest November 10th 2011, 6:44 pm

    no this.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Input-box says in "username"

    Post by SLGray November 10th 2011, 6:46 pm

    I am having trouble understanding what exactly you want or asking about.

    Please give an example.



    Input-box  says  in "username" Slgray10

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


    Solved Re: Input-box says in "username"

    Post by Guest November 10th 2011, 6:49 pm

    Username: please write your username
    Password: please write your password

    And i click on boxes.

    Username: My name.

    Password: my password.

    Automatically delete the message "please write your username"" please write your password with one click.
    avatar
    Guest
    Guest


    Solved Re: Input-box says in "username"

    Post by Guest November 10th 2011, 6:52 pm

    Function onclick. It's a simple attribute, you need to put this on the input tag. Smile
    avatar
    Guest
    Guest


    Solved Re: Input-box says in "username"

    Post by Guest November 10th 2011, 6:53 pm

    how ? Smile
    avatar
    Guest
    Guest


    Solved Re: Input-box says in "username"

    Post by Guest November 10th 2011, 6:54 pm

    In phpBB2 you can edit index_body, so... onclick="document.form1.type.value ='''';" Give me the index_body..
    avatar
    Guest
    Guest


    Solved Re: Input-box says in "username"

    Post by Guest November 10th 2011, 7:01 pm

    I do not want to put on index_body.
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Input-box says in "username"

    Post by LGforum November 10th 2011, 11:34 pm

    When you have an input field you can do this in the input tag:

    Code:

    <input type="text" name="username" onfocus="if(this.value!=' '){this.value=' '}" onblur="if(this.value!='Please type your username'){this.value='Please type your username';}" value="Please type your username">

    So when the user clicks in the box, it will empty what is in there for them to type. And if they click back out of it, it will return to 'Please type your username'
    avatar
    Guest
    Guest


    Solved Re: Input-box says in "username"

    Post by Guest November 14th 2011, 4:57 pm

    thanks.Smile
    Nera.
    Nera.
    Energetic


    Female Posts : 7078
    Reputation : 2017
    Language : English
    Location : -

    Solved Re: Input-box says in "username"

    Post by Nera. November 14th 2011, 7:17 pm

    Topic solved