导航首页 » 技术教程 » jquery实现的回旋滚动效果完整实例【附demo源码下载】
jquery实现的回旋滚动效果完整实例【附demo源码下载】 93 2024-02-17   

本文实例讲述了jquery实现的回旋滚动效果。分享给大家供大家参考,具体如下:

这里分享一款回旋滚动效果,先上效果图:

查看图片

具体代码如下:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
 <meta charset="UTF-8">
 <title>jquery-roundabout</title>
 <style type="text/css">
 *{padding:0;margin:0;}
 body{font:24px tahoma;}
 ul{list-style:none;margin:100px auto 0;width:500px;height:200px;}
 li{line-height:200px;height:200px;width:300px;background:#ccc;text-align:center;cursor:pointer;}
 .roundabout-in-focus{cursor:default;}
 </style>
</head>
<body>
 <ul class="roundabout">
  <li>Block 1</li>
  <li>Block 2</li>
  <li>Block 3</li>
  <li>Block 4</li>
  <li>Block 5</li>
 </ul>
</body>
</html>
<script type="text/javascript" src="http://www.gimoo.net/t/1812/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://www.gimoo.net/t/1812/js/jquery.roundabout.min.js"></script>
<script type="text/javascript">
$(function(){
 $('.roundabout').roundabout();
});
</script>

至于 roundabout.js 的代码可以去官网上下载,这里就不写了。

官网地址为:http://fredhq.com/projects/roundabout

完整实例代码点击此处本站下载。

更多关于jQuery相关内容感兴趣的读者可查看本站专题:《jQuery窗口操作技巧总结》、《jQuery拖拽特效与技巧总结》、《jQuery常用插件及用法总结》、《jquery中Ajax用法总结》、《jQuery表格(table)操作技巧汇总》、《jQuery扩展技巧总结》、《jQuery常见经典特效汇总》、《jQuery动画与特效用法总结》及《jquery选择器用法总结》

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



!!!站长长期在线接!!!

网站、小程序:定制开发/二次开发/仿制开发等

各种疑难杂症解决/定制接口/定制采集等

站长微信:lxwl520520

站长QQ:1737366103