• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

MS search engine

Pondlife

Froglike
Joined
May 2, 2006
Messages
13,861
Likes received
1,635
Thanks received
365
Location
Euroland
Is this really the html code for Bing?

Code:
<form method="get" action="http://www.google.com/search">

<div style="border:1px solid black;padding:4px;width:20em;">
<table border="0" cellpadding="0">
<tr><td>
<input type="text"   name="q" size="25"
 maxlength="255" value="" />
<input type="submit" value="Bing" /></td></tr>
></table>
</div>

</form>

Seriously though, how do they generate the same results as google?





obviously I googled the code as I have no idea. I could have used bing and got the same result apparently.:freaky:
 
There is no way Microsoft would ever come up with such concise code. I checked, their home page has html which us 27627 characters long. I'd post it here but the forum only allows 10000. Anyway, here's a sample:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=utf-8" http-equiv="content-type" /><script type="text/javascript">//<![CDATA[si_ST=new Date//]]></script><script type="text/javascript">//<![CDATA[_G={ST:(si_ST?si_ST:new Date),Mkt:"en-GB",RTL:false,Ver:"6_12_0_811337",IG:"0e806e20a7a44969ab060ec45e25a3c6",EventID:"D54BDF3883D648D0A6AC73860A05FFDE",P:"SERP",DA:"Db3",CID:"0767A3F7B4EE4EFABF22B313DC28C0CE",SUIH:"R6SzL5b333mEqyJWMj0PHw",PCId:"1",cUrl:"http:\/\/c.bing.com\/c.gif?DI=15074",akamaiSyncUrl:"http:\/\/cms.abmr.net\/pix?cid=1237&uid=",gpUrl:"\/fd\/ls\/GLinkPing.aspx?"};_G.lsUrl="/fd/ls/l?IG="+_G.IG+"&CID="+_G.CID+"&PM=Y";curUrl="http:\/\/www.bing.com\/";function si_T(a){if(document.images){_G.GPImg=new Image;_G.GPImg.src=_G.gpUrl+'IG='+_G.IG+'&CID='+_G.CID+'&PM=Y'+a;}return true;};_w=window;_d=document;sb_de=_d.documentElement;sb_ie=!!_w.ActiveXObject;sb_i6=sb_ie&&!_w.XMLHttpRequest;function _ge(a){return _d.getElementById(a)}sb_st=_w.setTimeout;sb_ct=_w.clearTimeout;sb_gt=function(){return(new Date).getTime()};function si_PP(e,c){if(!_G.PPS){for(var d='"',b=["PC","FC","BC","BS","H","C1","C2","BP","KP"],a=0;a<b.length;a++)d+=',"'+b[a]+'":'+(_G[b[a]+"T"]?_G[b[a]+"T"]-_G.ST:-1);_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(c?c:"L")+d+',"CT":'+(e-_G.ST)+',"IL":'+_d.images.length+(_w.sb_ppCPL?',"CP":1':"")+"}}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"");_G.PPS=1;sb_st(function(){sj_evt.fire("onPP")},1)}}_w.onbeforeunload=function(){si_PP(new Date,"A")};sj_evt=new function(){var a={},b=this;function c(b){return a[b]||(a[b]=[])}b.fire=function(e){for(var a=c(e),d=a.e=arguments,b=0;b<a.length;b++)if(a[b].d)sb_st(sj_wf(a[b],d),a[b].d);else a[b](d)};b.bind=function(f,a,d,e){var b=c(f);a.d=e;b.push(a);d&&b.e&&a(b.e)};b.unbind=function(e,d){for(var c=0,b=a[e];b&&c<b.length;c++)if(b[c]==d){b.splice(c,1);break}}};//]]></script><style type="text/css">#sb_foot #sw_footC{float:left}</style><script type="text/javascript">//<![CDATA[function sj_be(c,a,b,d){sb_ie?c.attachEvent("on"+a,b):c.addEventListener(a,b,d)}function sj_ue(c,a,b,d){sb_ie?c.detachEvent("on"+a,b):c.removeEventListener(a,b,d)};function sj_wf(a){var b=arguments;return function(){a.apply(null,[].slice.apply(b).slice(1))}};function sj_anim(k){var a=this,j,d,h,g,c,e,i,b,f;a.init=function(m,g,k,l,h){j=m;c=g;e=k;i=l;f=h;if(!b)b=c;!d&&a.start()};a.start=function(){h=sb_gt();g=Math.abs(e-c-b)/i*25;d=setInterval(a.next,25)};a.stop=function(){clearInterval(d);d=0};a.next=function(){var d=sb_gt()-h;b=c+(e-c)*d/g;if(d>=g){a.stop();b=e;f&&f()}k(j,b)}};function sj_so(b,a){b.style.filter=a>=100?"":"alpha(opacity="+a+")";b.style.opacity=a/100};function sj_fader(){return new sj_anim(function(b,a){sj_so(b,a)})};sj_fade=new function(){this.up=function(b,c,d){a(b,0,100,c,e,d,1);function e(){b.style.visibility="visible"}};this.down=function(c,d,b){a(c,100,0,d,0,e,0);function e(){c.style.visibility="hidden";b&&b()}};function a(a,e,h,f,d,g,c){var b=a.fader;if(b){if(c==a.fIn)return}else{b=sj_fader();a.fader=b}d&&d();b.init(a,e,h,f,g);a.fIn=c}};function sj_ev(a){return sb_ie?event:a}function sj_et(a){return sb_ie?event.srcElement:a.target}function sj_mi(a){return sb_ie?event.fromElement:a.relatedTarget}function sj_mo(a){return sb_ie?event.toElement:a.relatedTarget};function sj_go(a,c,d){var b=0;while(a.offsetParent&&a!=(d||sj_b)){b+=a["offset"+c];a=a.offsetParent}return b};function sj_we(a,c,b){while(a&&a!=(b||sj_b)){if(a==c)return!0;a=a.parentNode}return!1};function sj_ce(d,c,b){var a=_d.createElement(d);if(c)a.id=c;if(b)a.className=b;return a};function sj_gx(){return sb_i6?new ActiveXObject("MSXML2.XMLHTTP"):new XMLHttpRequest};function sj_jb(h,f){for(var b=arguments,e,d,a=2,g={n:h};a<b.length;a+=2){e=b[a];d=b[a+1];sj_be(e,d,sj_wf(c,g,f,e,d))}a<3&&c(g,f);function c(a,d,b,e){b&&sj_ue(b,e,c);sj_evt.bind("onP1",function(){if(!a.l){a.l=1;var b=sj_ce("script");b.src=(d?"/fd/sa/"+_G.Ver:"/sa/"+_G.AppVer)+"/"+a.n+".js";sj_b.appendChild(b)}},1,5)}};function sj_pd(a){if(sb_ie)event.returnValue=false;else a.preventDefault()};function sj_sp(a){if(sb_ie)a.cancelBubble=true;else a.stopPropagation()};(function(){var e,a=0,c=sj_evt,b=[];_w.si_PP&&b.push("onPP");for(;a<b.length;a++)c.bind(b[e=a],d,1);!a&&d();function d(){--e<1&&c.fire("onP1")}})();function lb(){var d=sj_evt,e="onSbBusy",b;d.bind(e,c,1);function c(a){b=a[1];d.unbind(e,c)}for(var a=1;a<4;++a){var g="sb_form"+(a>1?a:""),f=_ge(g);f&&!(b&&_ge(g+"_q")==b)&&f.reset()}_w.si_sendCReq&&sb_st(si_sendCReq,800);_w.lbc&&lbc()}(function(){var a=sj_evt,c="onSbBusy",b=null;a.bind(c,function(){sb_ct(b);b=sb_st(sj_wf(a.fire,"onSbIdle"),1100)});sj_be(_d,"keydown",function(b){a.fire(c,sj_et(b))})})();sj_evt.bind("onHTML",function(){var a=_ge("sb_form");a&&sj_be(a,"submit",sj_wf(sj_evt.fire,"onSearch",a))});function init(){};//]]></script><style type="text/css">a,body{color:#fff;text-decoration:none}a:hover{text-decoration:underline}.lit .sw_sform a,.lit label{color:#000}ul{list-style:none;padding:0;margin:0}label{padding-right:1em}#sw_pb,#hp_content{border:1px #d0d9dd solid}#hp_content{overflow:hidden}#hp_sw_content{height:512px;position:relative;overflow:hidden;background:#9eacb3}.hp_sw_logo{background:url(/fd/s/a/h1.png) 0 -29px no-repeat;width:138px;height:46px;float:left;margin:-2px 17px 0 0;_margin:-29px 17px 0 0;_background-image:none;_height:75px;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/fd/s/a/h1.png',sizingMethod='crop');text-indent:-9em}.lit .hp_sw_logo{background-position:0 -75px;_margin-top:-75px;_height:126px}.sw_sform{position:absolute;top:102px;left:30px;z-index:10;width:100%;margin:0}.search_controls{float:left}.beta{position:absolute;top:40px;left:0}.lit .beta{color:#006dd4}html,body{height:100%}body{background:#b2bdc4;margin-top:-1px;margin:0;padding:0;font-family:Arial,Sans-Serif;font-size:small}.sc_grad{background:url(/fd/s/a/h1.png) 0 -122px;position:absolute;width:100%;height:35px;min-width:700px}#hp_table_layout{width:100%;height:100%;border-collapse:collapse}#hp_td_layout{vertical-align:middle;padding:1.8em 17px 0}#hp_container{text-align:left;position:relative;_width:966px;min-width:656px;max-width:964px;padding-top:17px}.hp_content_wrap{border:solid 3px #aab9c1;background:#bcc9cf;zoom:1;position:relative}.sw_bd{position:relative;float:left;font-size:medium;z-index:1}.sw_b{float:left;border:1px #e5e5e5 solid;background:#fff;p[CODE]
 
Seriously though, how do they generate the same results as google?

If you are talking about a handful of cases when having very unique word combination would give you same result if nobody else is using.

It is much harder to show same results when there are lots of other matches available.
 

Advertisers

Back
Top