Cool Google Co-Op Search feature

Dan Nicholson dbn.lists at gmail.com
Tue Dec 5 12:25:00 PST 2006


I just stumbled on this thing called Google Co-Op where you can easily
create a custom google search box. So I made one for LFS. It's here:

http://google.com/coop/cse?cx=012845676306904203607%3Azsvebyymzw8

However, the extra cool feature is that you can put the box anywhere.

http://anduin.linuxfromscratch.org/~dnicholson/search/

Here's the html:

<!-- Google CSE Search Box Begins -->
  <form id="searchbox_012845676306904203607:zsvebyymzw8"
action="http://google.com/cse">
    <input type="hidden" name="cx" value="012845676306904203607:zsvebyymzw8" />
    <input name="q" type="text" size="40" />
    <input type="submit" name="sa" value="Search" />
    <input type="hidden" name="cof" value="FORID:0" />
  </form>
  <script type="text/javascript"
src="http://google.com/coop/cse/brand?form=searchbox_012845676306904203607%3Azsvebyymzw8"></script>
<!-- Google CSE Search Box Ends -->

There's also javascript free html. There's tons more stuff you can do
with it, too. I think we should consider using this as the search box
for lfs.org.

--
Dan



More information about the website mailing list