Example 1 shows how the scrollbar will appear when hovering over the content area and disappear when leaving the area and also after a certain time of inactivity.

When scrolling with the mousewheel, the scrollbar will appear and when stopping, the scrollbar will disappear again (after a predefined time).

The scrollbar will not hide if we are hovering over it.

适用浏览器:FireFox、Chrome、Safari、Opera、傲游、搜狗. 不支持IE8、360、世界之窗。


代码整理:站长图库