View an example here
It doesn't work in Internet Explorer at the moment.
Is it a good/bad idea? I wrote the code pretty quick so there are probably some bugs and room for improvement in the implementation. If you see any obvious things, you can mention them here.