Individual functionality for both the form and css has been achieved, but when trying to implement them together, they do not work as intended. This integration is specifically for a windows sidebar gadget.
Here is the structure of the form:
<form name="llPeople" action="URL" method="get" target="newwindow">
<input id="phonebook" class="blur" type="text" name="peo_name" size="15" value="Search Phonebook.."
onFocus="document.getElementById('phonebook').value = ''; document.getElementById('phonebook').className = 'focus';"
onBlur="document.getElementById('phonebook').value = 'Search Phonebook..'; document.getElementById('phonebook').className = 'blur';" />
</form>
Here is the CSS style applied:
#phonebook.focus
{
background-image: url(images/searchBack.png);
background-repeat: no-repeat;
width: 124px;
height: 16px;
position: relative;
}
#phonebook.blur
{
background-image: url(images/searchBackW.png);
background-repeat: no-repeat;
width: 124px;
height: 16px;
position: relative;
}
#intranet
{
width: 124px;
height: 16px;
}
input
{
font-size: 10px;
filter: alpha(opacity=70);
}