On Github net-uk-sweet / javascript-ugly-duckling
function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src;x.src=a[i+2];} }I think there was a time where if you viewed the source of a web page, there was at least a 50% chance you would see this code.
“We realized that the web had evolved from mainly simple text pages to rich, interactive applications and that we needed to completely rethink the browser.
What we really needed was not just a browser, but also a modern platform for web pages and applications, and that's what we set out to build.”
google, 2008 And I know this is long, but I couldn't really see where to cut it, so I'll just read it. It's a statement which google published along with the beta of Chrome for Windows in 2008. It's long, but I think it really illustrates some of the things I've just been talking about.“Hidden under a huge steaming pile of good intentions and blunders is an elegant and expressive programming language”
Douglas Crockford JavaScript: The Good Parts (2008). There are some good parts and Douglas Crockford argued that if we concentrate on just the good bits, it's possible to build really good programs using JavaScript. The tools are really good now. Built into Visual Studio and Eclipse. Firebug and Chrome are first class debugging tools. And we have a functionaing standards body - Mozilla, Microsoft, Apple, Google, Opera and Yahoo all working together towards the next version, appropriately named "Harmony"