If you want to change the magnify and arrow image of the SearchBox in WSS you could replace the gosearch.gif and magnify.gif image in the %Program Files%Common FilesMicrosoft Sharedweb server extensions60TEMPLATEIMAGES directory. Problem is that this affects all the SharePoint sites.
A better solution would be adjusting the default.aspx file in a custom site definition. Since the SearchBox is a webcontrol there is no direct way. But if you open the source of a in the browser loaded default.aspx file you'll find what the source is of the images.
Using the following javascript you can adjust the images:
<script language="javascript"> var i = document.images.length - 1;
while (i >= 0) { var img = document.images[i]; if (img.src.indexOf('/_layouts/images/gosearch.gif') > -1) { img.src = img.src.replace('gosearch.gif','sporty/search08.gif'); }
if (img.src.indexOf('/_layouts/images/magnify.gif') > -1) { img.height = '0px'; } i--; } </script>
Maybe there is a better way? Let me know...
3:33:32 PM
|