Here I have provided the code which you can use to add up the live search bar to your website made with the asp code lines.
Code:
DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN">
<html>
<head>
<title> </ title>
<link rel= "stylesheet" type= "text/css" media= "screen" href= "http://www.live.com/live/1.100.7.337/css/searchlanding.css" />
</ head>
<body>
<div "search"> id=
<ul>
<li>
<a href= "http://www.live.com/?searchLive Searchonly=true" target= "_blank">
<img src = "http://shared.live.com/ live.themes /~/~/~ live.search ~ / ~ / ~ de-DE/Base/controls/img/jewel.png" alt = "Live.com search" width = "49" height = "49" border = "0" align = "absmiddle"> </ a> <span id= "searchLandingTitle"> Live Search </ span>
> "details": <ul Class = 16
<li>
<div "searchBar"> id=
<form id= "searchform" name= "searchform" action= "http://search.live.com/results.aspx" target= "_blank" onsubmit= "return onSearch(event);">
<span "sc" class => class = <input "q" id= "q" name= "q" value = "" /> <input style = "border: 1px solid rgb (170, 170, 170) , "name =" mkt "value =" en-us "type =" hidden "/> <input name= "FORM" value = "LVSP" type= "hidden" /> <input name =" go "id =" go "class =" go "src =" http://www.live.com/live/1.100.7.337/img/search_go.gif "target =" _blank "value =" Search "align =" middle "type =" image "/> </ span> </ form>
</ div>
<script> document.getElementById ("q")>. Focus ();</ script
</ li>
<li>
> "scopes": <ul Id= "scopes" class = 25
<li class = "selected" id= "web">
<a href= "./?scope=web" onclick= "return selectScope('web');"> Web </ a> </ li>
<li "images"> id=
<a href= "./?scope=images" onclick= "return selectScope('images');">
Photos </ a> </ li>
<li "news"> id=
<a href= "./?scope=news" onclick= "return selectScope('news');"> News </ a> </ li>
<li "local"> id=
<a href= "./?scope=local" onclick= "return selectScope('local');"> Local </ a> </ li>
<li "qna"> id=
<a href= "./?scope=qna" onclick= "return selectScope('qna');"> QNA </ a> </ li>
</ ul>
</ li>
</ ul>
</ li>
<li "msg" class => </ li>
</ ul>
</ div>
<script "JavaScript"> language=
var searchform = document.getElementById ("searchform");
var searchbox = document.getElementById ("q");
_scope var = "web";
var _scopes = {web: 'http://search.live.com/results.aspx' news: 'http://search.live.com/news/results.aspx' images: 'http:/ / search.live.com / images / results.aspx 'local:' http://local.live.com/ 'QnA' http://qna.live.com/search.aspx '};
onSearch function (ev)
{
searchform.action = _scopes [_scope];
return true;
}
var scopesEl = document.getElementById ("scopes");
function select scope (scope)
{
_scope scope =;
if (scopesEl) for (var i = 0; i <scopesEl.childNodes.length; i + +) scopesEl.childNodes [i];. ClassName = ""
var el = document.getElementById (scope);
if (null = el) el.className = "selected";
searchbox.focus ();
return false;
}
</ script>
</ body>
</ html>
Bookmarks