Recommended Posts

The OSX bar's code

<script type="text/javascript">k=document;v=Date;x=false;z=Array;af=Math.floor;ag=RegExp;b=new z(12);s=new z("null","web","images","groups","news","froogle","local","scholar","video","maps","labs","more");aa=new z(11);ab=10;t=0;u=0;n=0;o=new v();h=5;m=385;c=0;w=x;var title;var firstHoverOccurred=x;m=385;p=0;function d(ac){c=ac;o=new v();setTimeout("gidle()",20);}function e(ac){c=0;w=x;o=new v();setTimeout("gidle()",20);}function ae(){for(var j=1;j<b.length;j++){b[j]=35}title=k.getElementById('imageTitle');for(i=0;i<b.length;i++){aa[i]=new Image();aa[i].src=s[i+1]+".gif"}setTimeout("gidle()",20);}function gidle(){var l=0;for(var i=1;i<b.length;i++){var imagename="image"+i;var imageElem=k.getElementById(imagename);if(c!=i){if(b[i]>35){b[i]-=h;if(b[i]<=35){b[i]=35;imageElem.src=s[i]+"-sm.gif"}imageElem.width=b[i];imageElem.height=b[i];if(c==0){var g=af(255-255*(b[i]-35)/35);title.style.color="rgb("+g+","+g+","+g+")"}p=1}l+=b[i]}}if(c!=0&&b[c]<70){imagename="image"+c;imageElem=k.getElementById(imagename);if(w==x){w=true;if(c<6){var y=360-(c-1)*70;title.innerHTML=k.getElementById(imagename).alt+'<img src="cleardot.gif" width="'+y+'" height="1"/>'}else{var y=(c-7)*70+70;title.innerHTML='<img src="cleardot.gif" width="'+y+'" height="1"/>'+k.getElementById(imagename).alt}}b[c]+=h;p=1;if(b[c]>70){b[c]=70}l+=b[c];if(l<m){b[c]+=m-l;if(b[c]>70){b[c]=70}l=m}var g=af(255-255*(b[c]-35)/35);title.style.color="rgb("+g+","+g+","+g+")";imageElem.width=b[c];imageElem.height=b[c];k.getElementById(imagename).src=s[c]+".gif"}m=l;var ad=new v();ab=ad.getTime()-o.getTime();o=ad;t+=ab;u++;n=t/u;h=5;if(u>4){if(n>30){h=10}if(n>60){h=15}if(n>90){h=20}}if(p){setTimeout("gidle()",20);p=0}}</script></head><body onload="ae()" link="#0000cc" alink="red" bgcolor="white" text="black" vlink="#551a8b"><center><form action="http://www.google.com/search" name="f"><script><!--
function qs(r){if(ag&&window.encodeURIComponent){var qe=encodeURIComponent(k.f.q.value);if(r.href.indexOf("q=")!=-1){r.href=r.href.replace(new ag("q=[^&$]*"),"q="+qe);}else{r.href+="&q="+qe}}return 1}//-->
</script>

<table border="0" width="100%"><tbody><tr><td align="center" valign="bottom"><b><div id="imageTitle" style="color:#fff"><b>Web Search<img src="cleardot.gif" height="1" width="360"></b></div> </b></td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr height="70"><td align="center" valign="bottom"><a id="1a" class="q" href="http://www.google.com/search?hl=en&tab=wi" onclick="return qs(this)"><img id="image1" src="web-sm.gif" alt="Web Search" onmouseover="d('1')" onmouseout="e('1')" border="0" height="35" width="35"></a><a id="2a" class="q" href="http://www.google.com/images?hl=en&tab=wi" onclick="return qs(this)"><img id="image2" src="images-sm.gif" alt="Images" onmouseover="d('2')" onmouseout="e('2')" border="0" height="35" width="35"></a><a id="3a" class="q" href="http://groups-beta.google.com/groups?hl=en&tab=wg" onclick="return qs(this)"><img id="image3" src="groups-sm.gif" alt="Groups" onmouseover="d('3')" onmouseout="e('3')" border="0" height="35" width="35"></a><a id="4a" class="q" href="http://news.google.com/nwshp?hl=en&gl=us" onclick="return qs(this)"><img id="image4" src="news-sm.gif" alt="News" onmouseover="d('4')" onmouseout="e('4')" border="0" height="35" width="35"></a><a id="5a" class="q" href="http://www.google.com/froogle?hl=en&tab=wf" onclick="return qs(this)"><img id="image5" src="froogle-sm.gif" alt="Froogle" onmouseover="d('5')" onmouseout="e('5')" border="0" height="35" width="35"></a><a id="6a" class="q" href="http://local.google.com/lochp?hl=en&tab=wi" onclick="return qs(this)"><img id="image6" src="local-sm.gif" alt="Local" onmouseover="d('6')" onmouseout="e('6')" border="0" height="35" width="35"></a><a id="7a" class="q" href="http://scholar.google.com/scholar?hl=en&tab=wi" onclick="return qs(this)"><img id="image7" src="scholar-sm.gif" alt="Scholar" onmouseover="d('7')" onmouseout="e('7')" border="0" height="35" width="35"></a><a id="8a" class="q" href="http://video.google.com/videosearch?hl=en" onclick="return qs(this)"><img id="image8" src="video-sm.gif" alt="Video" onmouseover="d('8')" onmouseout="e('8')" border="0" height="35" width="35"></a><a id="9a" class="q" href="http://maps.google.com/maps?hl=en" onclick="return qs(this)"><img id="image9" src="maps-sm.gif" alt="Maps" onmouseover="d('9')" onmouseout="e('9')" border="0" height="35" width="35"></a><a id="10a" class="q" href="http://labs.google.com/"><img id="image10" src="labs-sm.gif" alt="Labs" onmouseover="d('10')" onmouseout="e('10')" border="0" height="35" width="35"></a><a id="11a" class="q" href="http://www.google.com/options/index.html"><img id="image11" src="more-sm.gif" alt="More..." onmouseover="d('11')" onmouseout="e('11')" border="0" height="35" width="35"></a></td> </tr><tr height="7"><td></td></tr></tbody></table>

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.