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.

Input-box says in "username"

3 posters

Go down

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


Back to top Go down

Solved Re: Input-box says in "username"

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

avatar
Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

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

no this.
avatar
Guest
Guest


Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51556
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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


Back to top Go down

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


Back to top Go down

Solved Re: Input-box says in "username"

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

how ? Smile
avatar
Guest
Guest


Back to top Go down

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


Back to top Go down

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.
avatar
Guest
Guest


Back to top Go down

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'
LGforum
LGforum
Hyperactive

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

Back to top Go down

Solved Re: Input-box says in "username"

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

thanks.Smile
avatar
Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

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

Topic solved
Nera.
Nera.
Energetic

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

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum