highw, вот код который полностью решает вашу задачу… А по поводу цвета. Не пытайтесь делать универсальным то, что можно сделать руками при меньшем коде…
jQuery('#top_search').blur(function(){
if (this.value == '')
this.value = this.defaultValue;
}).focus(function(){
if (this.value == this.defaultValue)
this.value = '';
});
вот тут покупал, и стоит он дешевле
jQuery('#top_search').blur(function(){
if (this.value == '')
this.value = this.defaultValue;
}).focus(function(){
if (this.value == this.defaultValue)
this.value = '';
});