代码:http://coderhome.net/code/index.php?id=158
演示:http://www.coderhome.net/demo/hdjs.html