Posts tonen met het label JavaScript. Alle posts tonen
Posts tonen met het label JavaScript. Alle posts tonen

02 juni 2010

Smokescreen

Smokescreen - iPad demo #1 from Chris @ RevShockAds on Vimeo.


Simon Willison’s Weblog:

Smokescreen demo: a Flash player in JavaScript. Chris Smoak’s Smokescreen, “a Flash player written in JavaScript”, is an incredible piece of work. It runs entirely in the browser, reads in SWF binaries, unzips them (in native JS), extracts images and embedded audio and turns them in to base64 encoded data:uris, then stitches the vector graphics back together as animated SVG. Open up the Chrome Web Inspector while the demo is running and you can see the SVG changing in real time. Smokescreen even implements its own ActionScript bytecode interpreter. It’s stated intention is to allow Flash banner ads to execute on the iPad and iPhone, but there are plenty of other interesting applications (such as news site infographics). The company behind it have announced plans to open source it in the near future. My one concern is performance—the library is 175 KB and over 8,000 lines of JavaScript which might cause problems on low powered mobile devices.

19 augustus 2009

$j.ui.draggable

Onbegrijpelijke foutmelding nr. 2421. Goed, een JavaScript-fout. Maar om de eindgebruiker nou om de oren te slaan met kreten als '$j.ui.draggable'?

Schermafbeelding foutmelding leuksman.com

15 maart 2008

Test

Probeer voor de grap eens de onderstaande string in de adresbalk van je browser te plakken en op Enter te drukken. Als het je teveel wordt, kun je op Esc drukken en weer op Enter. Werkt op alle sites met meerdere afbeeldingen.

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);