In memory of (the nearly dead) Internet Explorer 6 comes this nifty little piece of JavaScript that will wreak havoc with your web page, turning it into a pile of unreadable junk that even Steve Ballmer would be proud of.

ie6ify-logo

The IE6IFY site proudly proclaims: “After years of observation and reverse engineering I am proud to say I have been able to reproduce the IE6 algorithm to break even the most standards-compliant websites.”

Before I show you the results, here’s the piece of code that does the damage:

javascript:(function(){var i=0,r=function(n){return Math.floor(Math.random()*n)},f=document.getElementsByTagName('body')[0].getElementsByTagName('*'),o=function(e){return typeof(e.style)=='object'&&e.tagName!='SCRIPT'},s=function(){while(!o(e=f[r(f.length)])){}return e.style};while(i++<5){s().display=r(2)?'block':'inline';s().position=r(2)?'absolute':'relative';s().margin=r(2)?'0':'1em';s().padding=r(2)?'0':'1em';s().width=r(2)?'':'auto';}})();

Whack that into your browser's toolbar and then hit it repeatedly when viewing your (least) favorite web site.

Here's what happens to Forever Geek:

forever-geek-normal

forever-geek-mashed

And Gadzooki:

gadzooki-normal

gadzooki-mashed

And of course Microsoft can't be allowed to get away with it:

microsoft-normal

microsoft-mashed

Anyone tried it in IE6?

Share and Enjoy

  • StumbleUpon
  • Reddit
  • Digg
  • del.icio.us
  • Facebook
  • TwitThis

Related posts:

The Totally Rad Show
Microsoft releases first beta of Internet Explorer 8
Internet Explorer 8 to be standards compliant
Ten Good Practices for Writing JavaScript in 2005
gVisit: Mapping Visitors

Hope you like that post!

Forever Geek is a resource for all things geek. You can stay tuned by having the latest FG news delivered to you for free via RSS.