The Magnificent Technopreneur

Bookmarklet magic

November 29, 2006 • Filed in: Uncategorized

Free Subscription. I'm Ely, a user experience manager of a big US retail company. I KNOW about usability, tech and online business. I KNOW about life and how it feels to come from nowhere. I've been there...Done that. Join me and learn about tech, business, life and enterpreneurship. Just, enter your email address:

Copy the following code:

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);

And paste it on your browser’s ADDRESS Bar. You should see your web page images float around the screen. I’ve tried it with both FireFox and IE. It works.

My coder friend says that the code is a bookmarklet. A bookmarklet is a small JavaScript program that can be stored as a URL within a bookmark in most popular web browsers, or within hyperlinks on a web page.

I don’t know what value this offers. It is quite entertaining to look at. Makes you wonder what else you cand do with bookmarklets.

 

Leave a Comment

« User Generated Photo-Magazine Concept | Home | Eat-All-You-Can Places in Manila »