| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Buried in cloud files? We can help with Spring cleaning!

    Whether you use Dropbox, Drive, G-Suite, OneDrive, Gmail, Slack, Notion, or all of the above, Dokkio will organize your files for you. Try Dokkio (from the makers of PBworks) for free today.

  • Dokkio (from the makers of PBworks) was #2 on Product Hunt! Check out what people are saying by clicking here.

View
 

Bing Searches

Page history last edited by Doug Peterson 12 years, 3 months ago

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”>

<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/”>

<img src=”http://www.bing.com/siteowner/s/siteowner/Logo_51×19_Dark.png” 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”>

<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/”>

<img src=”http://www.bing.com/siteowner/s/siteowner/Logo_51×19_Dark.png” 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: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.

Comments (0)

You don't have permission to comment on this page.