http://www.pjhome.net/article/Javascript/html5_Orientation.htm#page=2
html5重力感应
http://www.pjhome.net/web/Orientation.html如果你有iphone 或者手机支持重力感应的话
可以试试这个网址
他们写的一个简单的demo
c2306a14-f5e1-422a-b0a4-d15d3deab714|0|.0|27604f05-86ad-47ef-9e05-950bb762570c
Html5