Site Search

Do you want to share WYSIWYG Web Builder tips, tricks, tutorials or useful HTML code? You can post it here...
(no questions or problems please, this section is not monitored by support).
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.

PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
User avatar
SteveMann
 
 
Posts: 66
Joined: Tue Jun 17, 2008 4:54 am

Site Search

Post by SteveMann » Thu Dec 30, 2010 5:37 am

Bing makes it easy to have a search function for your website. just create an HTML box (322 x 32 pixels) and add this code into it (change the parameter "site:www.mmdv.com"- to your site):

<!-- Bing -->
<meta name="Search.WLSearchBox" content="1.1, en-US" />
<div id="WLSearchBoxDiv">
<table cellpadding="0" cellspacing="0" style="width:322px; height:32px;"><tr id="WLSearchBoxPlaceholder"><td style="width:100%; border:solid 1px #cccccc; border-right-style:none; padding-left:10px; padding-right:10px; vertical-align:middle;"><input id="WLSearchBoxInput" type="text" value="&#x4c;&#x6f;&#x61;&#x64;&#x69;&#x6e;&#x67;&#x2e;&#x2e;&#x2e;" disabled="disabled" style="background-image:url(http://www.bing.com/siteowner/s/siteown ... ound_k.png); background-position:right; background-repeat:no-repeat; font-family:Arial; font-size:14px; color:#000000; width:100%; border:none 0 transparent;"/></td><td style="border:solid 1px #cccccc; border-left-style:none; padding-left:0px; padding-right:3px;"><input id="WLSearchBoxButton" type="image" src="http://www.bing.com/siteowner/s/siteown ... rmal_k.gif" style="border:none 0 transparent; height:24px; width:24px; vertical-align:top;"/></td></tr></table>
<script type="text/javascript" charset="utf-8">
var WLSearchBoxConfiguration=
{
"global":{
"serverDNS":"www.bing.com",
"market":"en-US"
},
"appearance":{
"autoHideTopControl":false,
"width":600,
"height":400,
"theme":"Blue"
},
"scopes":[
{
"type":"web",
"caption":"&#x53;&#x65;&#x61;&#x72;&#x63;&#x68;&#x20;&#x4d;&#x61;&#x6e;&#x6e;&#x4d;&#x61;&#x64;&#x65;",
"searchParam":"site:www.mmdv.com"
}
,
{
"type":"web",
"caption":"&#x57;&#x65;&#x62;",
"searchParam":""
}
]
}
</script>
<script type="text/javascript" charset="utf-8" src="http://www.bing.com/bootstrap.js?market ... "></script>
</div>
<!-- Bing -->

Post Reply