A Custom Bing Search

Google has a method of injecting a custom search into your website.  I’ve created one and it sits here.  It’s a great way to create a custom search rather than search the wide open internet.

You can do the same thing with Bing.  And, it’s so easy.  Just head over to this page and decide what kind of search you want.

For example, a basic search gives you code that looks like this.  If you read carefully, you do have to insert a value to indicate the language of choice.  I’m assuming that you’ll use English and so the value of 1252 does the trick.  Copy the entire code and head to the webpage where you want your search and switch to code view.  That’s the view that gives you the HTML coding.  Just paste the text and save it and you’ve got yourself a custom search.  Sometimes, finding just where to paste the code can be interesting as there are lots of goodies in HTML to confuse.  If that’s the case, what I do it go to design view and type something like “INSERT CODE HERE” so that it stands out from the page.  Highlight that and paste over top of it and the code goes in the right spot.

<!– Web search from Bing–>
<form method=”get” action=”
http://www.bing.com/search&#8221;>
<input type=”hidden” name=”cp” value=”1252″ />
<input type=”hidden” name=”FORM” value=”FREEWS” />
<table bgcolor=”#FFFFFF”>
<tr>
<td>
<a href=”
http://www.bing.com/&#8221;>
<img src=”
http://www.bing.com/siteowner/s/siteowner/Logo_51x19_Dark.png&#8221; border=”0″ ALT=”bing” />
</a>
</td>
<td>
<input type=”text” name=”q” size=”30″ />
<input type=”submit” value=”Search Web” />
</td>
</tr>
</table>
</form>
<!– Web Search from Bing –>

So, the site above generates this on your webpage.  Of course, good egomanics always test it by searching for themselves first.

image

Bing offers you options as well.  Perhaps instead of searching the internet, you just want to search your site.  Use this code instead.  Make sure that you tell Bing what site to search.  Mine appears in red below

<!– Site search from Bing—>
<form method=”get” action=”http://www.bing.com/search”&gt;
<input type=”hidden” name=”cp” value=”1252” />
<input type=”hidden” name=”FORM” value=”FREESS” />
<table bgcolor=”#FFFFFF”>
<tr>
<td>
<a href=”http://www.bing.com/”&gt;
<img src=”http://www.bing.com/siteowner/s/siteowner/Logo_51x19_Dark.png&#8221; border=”0″ ALT=”Bing” />
</a>
</td>
<td>
<input type=”text” name=”q” size=”30″ />
<input type=”submit” value=”Search Site” />
<input type=”hidden” name=”q1″ value=”site:http://www.gecdsb.on.ca/d&g/” />
</td>
</tr>
</table>
</form>
<!– Site Search from Bing –>

So, why not add some additional functionality to your website and make it easier for your visitors to find things?  If you can copy and paste, Bing has made it very easy to add search to your site.

Social Bookmarks:
Advertisements

One Reply to “A Custom Bing Search”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s