如何让图库自动移动
我试图让这个画廊自动移动,但我在脚本中找不到执行此操作的命令。也许我错过了什么?这是脚本。
这是脚本
http://syndicatebox.com/jquery.slidingGallery-1.2.min.js
我我正在使用这个脚本
http://www.meadmiracle.com/SlidingGallery.aspx
我正在使用它来调用脚本来工作。 但我这里无法实现无需点击即可自动滑动的功能。
<script language="javascript" type="text/javascript">
$(function() {
$('div.gallery img').slidingGallery({
Lwidth: 400,
Lheight: 300,
Lshrink: function(dim) { return dim * 0.5; },
gutterWidth: -8,
container: $('div.gallery')
});
});
</script>
I am trying to get this gallery to automatically move, but i cant find the command to do so in the script. Maybe i am missing something? Here is the script.
This is the script
http://syndicatebox.com/jquery.slidingGallery-1.2.min.js
I am using this script
http://www.meadmiracle.com/SlidingGallery.aspx
I am using this to call the script to work.
But i am unable of the function here to make it automatically slide without clicking.
<script language="javascript" type="text/javascript">
$(function() {
$('div.gallery img').slidingGallery({
Lwidth: 400,
Lheight: 300,
Lshrink: function(dim) { return dim * 0.5; },
gutterWidth: -8,
container: $('div.gallery')
});
});
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我正在交叉发布我的答案 https://stackoverflow.com/q/8250488/128165
I am cross-posting my answer from https://stackoverflow.com/q/8250488/128165
不确定您还想用赏金寻找什么,但我的建议是使用完全符合您想要的功能的旋转木马。
我在 http://caroufredsel.frebsite.nl/ 方面获得了很好的体验。作者可以快速回答问题、添加功能,甚至还有一个设置向导来获取幻灯片几乎是零手动配置。
有选项可以将其设置为循环、无限、自动播放、键盘驱动、悬停暂停、设置cookie、更改方向等。
我根本没有参与该项目,但这是我在工作中使用的唯一画廊。
Not sure what else you are looking for with your bounty, but my recommendation is to use a carousel that does exactly what you want.
I have had nothing but good experiences with http://caroufredsel.frebsite.nl/. The author is quick to answer questions, add features, and even has a setup wizard to get the slideshow going with almost zero manual configuration.
There are options for it to be circular, infinite, auto-play, keyboard driven, pause-on-hover, set cookies, changes directions, etc etc.
I'm not involved with the project at all, but this is the only gallery I'll use for my work.
自己调用这些方法吗?
Call these methods yourself?
因为它是Jquery,所以你可以使用“stepcarousel.js”→ http://www.dynamicdrive.com/ Dynamicindex4/stepcarousel.htm 然后您可以在脚本中包含这行代码来调用 auto 函数。
希望这有帮助...
since it's Jquery, you can use "stepcarousel.js" → http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm then you can include this line of code in your script to invoke the auto function.
hope this helps...