The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Input-box says in "username"

View previous topic View next topic Go down

Solved Input-box says in "username"

Post by Guest on November 10th 2011, 1: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.

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 10th 2011, 2:06 pm


Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 10th 2011, 2:44 pm

no this.

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by SLGray on November 10th 2011, 2:46 pm

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

Please give an example.


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 10th 2011, 2: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.

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 10th 2011, 2:52 pm

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

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 10th 2011, 2:53 pm

how ? Smile

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 10th 2011, 2:54 pm

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

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 10th 2011, 3:01 pm

I do not want to put on index_body.

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

Post by LGforum on November 10th 2011, 7: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
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Input-box says in "username"

Post by Guest on November 14th 2011, 12:57 pm

thanks.Smile

Guest
Guest


Back to top Go down

Solved Re: Input-box says in "username"

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

Topic solved

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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