Drag and drop is a very cool feature in the browsers too, if really needed. Most JS libraries has this functionality, from jQuery to MooTools. But how they do it?
Well, it's not black magic, actually really simple.
The idea
You need to combine two different mouse events: mouseDown and mouseMove, then track the mouse position, update an elements position, finally cancel the mouseMove event on mouseUp.
The goal
Create a freely movable window that you can move with a handle.
Click "read more" to see the codes.
2
Read more
I've found an interesting experiment by Mr Doob. It's a proof of concept visualisation, using the HTML5 audio tag, JavaScript and SVG.
Well done, Mr Doob!
Check it out (Use Google Chrome for best experience.)
This image is generated with the amazing CFDG software. If you are not familiar with it, then check out their gallery to see what is it capable of.
What I like about this program is that you can create very complex structures with a few lines code.
2
Read more
All rights reserved, ©2008-2010 - Built on CodeIgniter framework - Konami codes - Mostly Valid XHTML 1.1 - Valid CSS 2.1