My JavaScript book is out! Don't miss the opportunity to upgrade your beginner or average dev skills.

Sunday, June 03, 2007

He can init Gears too

              (function
(D,W,A,R,F)
{if(!W[A]||!W[A][R]){
if(W.GearsFactory)F=newGearsFactory;
else{try{F =new ActiveXObject
("Gears.Factory")}catch(e){if(navigator.
mimeTypes["application/x-"+A+R]){F=D.
createElement( "object");F.style
.display="none" ;F.width=F.height
=0;F.type="application/x-"+A+R;
D.documentElement.appendChild(F)
}}};if(F&& (W[A]||(W[A
]={})))W[A][R]={factory:F};}
})(document,window
,"google",
"gears"
);


He's ready to fight
          (function(
D,W,A,R,F
){if(!W[
A]||!W
[A]
[R]){if(W.GearsFactory) F=new
GearsFactory;else{try{F =new
ActiveXObject("Gears.Factory")
}catch(e){if(navigator.mimeTypes[
"application/x-"+A+R]){
F=D.createElement("object");
F.style.display="none";F.width=
F.height=0;F.type="application/x-"+
A+R;D.documentElement.appendChild(F)
}}};if( F&&(W[A]||(W[A]={})))
W[A][R]={ factory:F};}})(document
,window, "google","gears");


and finally, he could be slim

(function(D,W,A,R,F){if(!W[A]||!W[A][R]){if(W.GearsFactory)F=new GearsFactory;else{try{F=new ActiveXObject("Gears.Factory")}catch(e){if(navigator.mimeTypes["application/x-"+A+R]){F=D.createElement("object");F.style.display="none";F.width=F.height=0;F.type="application/x-"+A+R;D.documentElement.appendChild(F)}}};if(F&&(W[A]||(W[A]={})))W[A][R]={factory:F};}})(document,window,"google","gears");


about 395 bytes ... are You ready for Gears ?!

No comments: