效果:http://hovertree.com/texiao/jquery/64/
效果图如下:
代码如下:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery带按钮向上滚动向下滚动代码 - 何问起</title><base target="_blank" /> <link href="http://hovertree.com/texiao/jquery/64/css/myScroll.css" rel="stylesheet" type="text/css" /> <script src="http://down.hovertree.com/jquery/jquery-1.4.4.min.js" type="text/javascript"></script> <script src="http://hovertree.com/texiao/jquery/64/js/jq_scroll.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $("#HoverTreeScroll").Scroll({ line: 1, speed: 500, timer: 3000, up: "but_up", down: "but_down" }); }); </script> </head> <body> <div class="hovertreeinfo"><h2>jQuery带按钮向上滚动向下滚动</h2> 可以手动控制滚动,放上鼠标就停止自动滚动。 <a href="http://hovertree.com/h/bjaf/gundong.htm">原文</a> <a href="http://hovertree.com">首页</a> <a href="http://hovertree.com/texiao/">特效</a> </div> <div class="hovertreebox"> <div id="HoverTreeScroll"> <ul> <li><h3><a href="http://hovertree.com/h/bjaf/6sm1esjw.htm" class="linktit">jQuery实现收起展开功能</a></h3> <div>受到网店的影响,服装店的生意逐渐有所下降,老板找何问起去谈,大概是准备跟上网购潮流... </div></li> <li><h3><a href="http://hovertree.com/h/bjaf/gundong.htm" class="linktit">不停转动向上滚动可控制向上向下滚动特效</a></h3> <div>DIV CSS JS自动不断向上一个一个滚动可控制向上向下滚动特效... </div></li> <li><h3><a href="http://hovertree.com/h/bjaf/5f5eiagg.htm" class="linktit">jquery奔跑吧兄弟特效</a></h3> <div>HTML5/CSS3奔跑动画DEMO演示,生命在于运动,奔跑吧兄弟! </div></li> <li><h3><a href="http://hovertree.com/h/bjaf/yuyihua.htm" class="linktit">HTML5为什么火</a></h3> <div>H5拥有服务器推送技术,能让用户拥有更好的网页上的实时聊天... by 何问起 hovertree.com </div></li> <li><h3><a href="http://hovertree.com/h/bjaf/c7lmaqjx.htm" class="linktit">我的第一个Bootstrap页面</a></h3> <div>响应式设计:Bootstrap 的响应式 CSS 能够自适应于台式机、平板电脑和手机... </div></li> <li><h3><a href="http://hovertree.com/code/jquery/dfkh88e4.htm" class="linktit">jquery同时改变悬停行和列背景色</a></h3> <div>表格悬停效果。当鼠标悬停到某个单元格上,该单元格所在的行和列背景色都变化... </div></li> </ul> </div> <div class="scroltit"><div class="updown" id="but_down">向上</div><div class="updown" id="but_up">向下</div></div> </div> </body> </html>
转自:http://hovertree.com/h/bjaf/gundong.htm
特效:http://www.cnblogs.com/roucheng/p/texiao.html
时间: 2024-10-11 17:32:39