The easiest way is to make the entire shell of the text field, from the icon on the left to the button on the right, one div, one image.
30px;
div , , .
HTML:
<div id="search_wrapper">
<input type="text" id="search_field" name="search" value="Search items..." />
<div id="search_button"></div>
</div>
CSS
background-image:url('/path/to/your/sprite.gif');
width:400px;
height:40px;
position:relative;
}
margin-left:40px;
background-transparent;
height:40px;
width:250px;
}
position:absolute;
top:0;
right:0;
width:80px;
height:40px;
}
JQuery
$(function(){
$('#search_button').click(function(){
});
$('#search_field').focus(function(){
if($(this).val() == 'Search items...')
{
$(this).animate({
opacity:0
},200,function(){
$(this).val('').css('opacity',1);
});
}
});
});