基本的 jQuery 横幅?
我对 jQuery 还很陌生,并且在横幅和动态 Web 功能方面具有 flash/javascript 背景。有谁知道简单的旋转横幅有什么好的教程吗?
我正在寻找一个带有 3 个旋转图像和一个 1,2,3 按钮以返回其他图像的图像。
任何帮助或建议都会很棒。
I'm still new to jQuery and come from a flash/javascript background when it comes to banners and dynamic web features. Does anyone know any good tutorials for a simple rotating banner?
I'm looking to build one with 3 rotating images and a 1,2,3 button to go back to other images.
Any help or advise would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(3)
jQuery Cycle 插件非常适合这个
http://jquery.malsup.com/cycle/
它甚至制作一个动态菜单(如您想要的 1、2、3 按钮)。
The jQuery Cycle-plugin is perfect for this
http://jquery.malsup.com/cycle/
It even makes a dynamic menu (like 1,2,3-bottons like you wanted).
您应该熟悉 jQuery Animate。
但为什么要重新发明轮子呢?有很多优秀且经过充分测试的 jQuery 插件。
插件
教程
You should get familiar with jQuery Animate.
But why reinvent the wheel ? There are so many good and well tested jQuery plugins.
Plugins
Tutorials
看看这个函数,它是一个简单的滑块:
HTML
JS
我有一个图片容器并切换它的 SRC 属性以显示其他图片。
它会自动计时到 3500 毫秒,并显示有关下面图片索引的信息。
我知道那是纯 JavaScript,但请看一下。它将教您一些基础知识。
Have a look at this function, it's a simple slider:
HTML
JS
I have a picture container and switch it's SRC-attribute to show the other pictures.
It's timed automatically to 3500 milliseconds and shows information about the picture index below.
That's pure javascript I know, but have a look at it. It will teach you some basics.