jQuery-自动对齐功能 [英] jQuery - Auto Alignment function

查看:108
本文介绍了jQuery-自动对齐功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将此自动对齐技术合并到我的网站中.
http://activeden.net/item/dynamic-xml-horizo​​ntal-image-gallery/full_screen_preview/45481 [^ ]
我的猜测是它是用jquery完成的.有人知道此函数的正确名称吗?任何教程的链接将不胜感激.
谢谢.
JimTiger

I would like incorporate this auto alignment technique into my website.
http://activeden.net/item/dynamic-xml-horizontal-image-gallery/full_screen_preview/45481[^]
My guess was that it was done with jquery. Does anyone know the correct name of this function? Any tutorial links would be much appreciated.
Thanks.
JimTiger

推荐答案

我认为您的意思是通过自动对齐来释放滚动条时图像如何对齐?

该页面的源代码表明那里是Flash内容,而不是jQuery.您可以通过查看此文件的源代码来查看此文件:http://s3.envato.com/files/130621/index.html

不幸的是,没有魔术调整功能,但是您可以编写一个.

您将需要使滑块代表x个宽度为y的图像(或元素)的数量.您可以使用jQuery动画来动画化div中元素的适当位置,以隐藏其溢出.

您可能想检查一下jQuery滑块上的一些示例,因为这将为您取得进步提供巨大的开端.

干杯.
I think you''re meaning, by auto alignment, how the images are lining up when you release the scroll bar?

The source of that page reveals that it''s a Flash thing there, not jQuery. You can see this by viewing the source of this file: http://s3.envato.com/files/130621/index.html

Unfortunately there''s no magic alignment function, but you could write one.

You''re going to need to have the slider represent x number of images (or elements) that are of width y. You''d use jQuery animation to animate to the appropriate placement of the elements inside a div that hides it''s overflow.

You might want to check out a few samples on jQuery sliders as this would give you a huge head-start on making progress.

Cheers.


是的,詹姆斯就是我的意思.我应该猜到由于它是瑞士法郎,所以它会在一瞬间完成.在我的项目中,我在div内使用了swf,因此我可以轻松地使用Flash实现此功能.尽管我计划使用jQuery实现此目的主要是因为我想保留浏览器滚动条.编写此函数听起来像是一个挑战.感谢您提供参考.
放轻松.
Yes James thats what I meant. I should have guessed it would have been done in flash since it was a swf. In my project I am using a swf inside a div, so I could easily pull this off with flash then. Although I plan to achieve this with jQuery mainly because I want to keep the browser scroller. Writing this function sounds like a challenge. Thanks for the points of reference.
Take it easy.


这篇关于jQuery-自动对齐功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆