inicio mail me! sindicaci;ón

Customized Live Web Search Boxes

The Live Help site has a little tutorial to help site owners and bloggers customize a Live Search Box to put on their sites and blogs so their users can search the internet using Windows Live Search. I tried to embed it on this blog, but the predesigned code uses tables and a fixed structure and I wasn’t really fond of it in the way it was presented, so I made few changes and here’s how it looks now, sizemade for one of the sidebars of this blog:

Add a < before every line so it becomes code again.

!-- Web search from Live Search-->
form method=”get” action=”http://search.live.com/results.aspx”>
input type=”hidden” name=”cp” value=”1252″/>
input type=”hidden” name=”FORM” value=”FREEWS”/>
a href=”http://search.live.com/”>
img src=”http://search.live.com/s/affillogoLive.gif” border=”0″ ALT=”Live Search”/>
/a>
/br>
input type=”text” name=”q” size=”20″ />
input type=”submit” value=”Search Web”/>
/form>
!– Web Search from Live Search –>

The code above is about 50 chars shorter than the one presented. Not that it makes a big difference, but it looks far less complicated without table structures. And it is way more flexible.

You can find the original code on the site of Live Help. What’s edited above is the Basic Web Search Box for sites. Not the Site Search Box and not the Advanced Search Box. The result can be seen in the sidebar :-)

Leave a Comment