[英]how to make image slider in dojo?
I've seen this image slider on the front page of http://www.ibm.com/us/en/ and I want to have one like that for my site. 我已经在http://www.ibm.com/cn/en/的首页上看到了此图片滑块,并且希望在我的网站上找到类似的图片滑块。 (After a timeout, the first image slides out of the screen, then the second image flies out after it, and then a new pair fly in). (超时后,第一个图像从屏幕上滑出,然后第二个图像在它之后飞出,然后一对新的图像飞入)。
I've seen that IBM uses Dojo not jQuery. 我已经看到IBM使用Dojo而不是jQuery。 Is this built in effect in dojo? 这是在dojo中内置的效果吗?
I have knowledge in javascript (but not any library like jQuery/dojo) and I can make it myself the hard-way. 我对javascript有了解(但是没有像jQuery / dojo这样的任何库),我自己也可以很努力。 But I wanted to know first if there is anything built in to do it? 但是我想先知道是否有内置的功能?
我认为使用dojox.widget.Rotator甚至dojox.widget.AutoRotator可能会更好。
The image slider on the IBM.com front page is built using Dojo, but not a out-of-box component of Dojo library. IBM.com主页上的图像滑块是使用Dojo构建的,而不是Dojo库的现成组件。 It's a customized component. 这是一个自定义的组件。
If you want to create image sliders using Dojo, take a look at existing out-of-box components in DojoX library ( dojox.image
). 如果要使用Dojo创建图像滑块,请查看DojoX库( dojox.image
)中现有的现成组件。 dojox.image.SlideShow
is a good starting point. dojox.image.SlideShow
是一个很好的起点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.