...

View Full Version : Help " Input Box Text Disappear "



mooapo
09-30-2011, 10:30 PM
I've been trying to find a good JavaScript code that I can use to make the text in my User Name and Password Input Boxes disappear. Does anyone know where I can get a good code for that?

Thank you...:thumbsup:

xelawho
10-01-2011, 12:15 AM
:eek:

disappear?

you mean like the default text?

maybe this:



<input type='text' value="Some default text" onfocus="searchfield_focus(this)"/>
<script type="text/javascript">
function searchfield_focus(obj)
{
obj.style.color=""
obj.style.fontStyle=""
if (obj.value=="Some default text")
{
obj.value=""
}
}

</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum