js实现的鼠标滚轮滚动切换页面效果(类似360默认页面滚动切换效果)

前端之家收集整理的这篇文章主要介绍了js实现的鼠标滚轮滚动切换页面效果(类似360默认页面滚动切换效果)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文实例讲述了js实现的鼠标滚轮滚动切换页面效果方法分享给大家供大家参考,具体如下:

运行效果截图如下:

具体代码如下:

wheel @H_404_25@ body { background:#494949; margin:0; } ul { list-style:none; margin:0; padding:0; } li { float:left;} #wheelWrapper { width:1000px; height:550px; margin:0 auto; position:fixed; left:50%; margin-left:-505px; bottom:50px; overflow:hidden; } #wheelUl { width:5050px; height:500px; } #barUl { clear:both; margin:0 auto; width:550px; margin-top:20px; line-height:25px; } #barUl>li { width:100px; background:orange; height:25px; margin-right:10px; border-radius:5px; text-align:center; -webkit-border-radius:5px; -moz-border-radius:5px; } #barUl>li:hover { background:#C36C12; } #barUl>li[class=active] { background:#C36C12; } #wheelUl>li { width:1000px; } .wheel { width:994px; height:500px; background:#FAAA3C; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px; margin:0 auto; line-height:300px; font-size:100px; text-align:center; } .radius { border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px; } h1 { text-align:center; color:#fff; } ie8+,chrome,ff提供支持
    • 2
    • 3
    • 4
    • 5

    更多关于jQuery特效相关内容感兴趣的读者可查看本站专题:《》及《

    希望本文所述对大家jQuery程序设计有所帮助。

    猜你在找的JavaScript相关文章