-1

所以我有 6 个 png-s,我想将它们编译成网站的介绍动画。它应该自动启动,完成后将我们带到索引页面。我希望它适用于所有设备。我想它可以用 JS 来完成,所以你知道有什么好的教程吗,我似乎找不到它。

谢谢!

4

1 回答 1

0

使用 jQuery...

1) pre-load the images
2) Create a div on the page
3) create a function, call it once
4) in the function, update the content of the div with the next image, update a variable (to tell what image is next) and call the function from within itself with setTimeout()
5) Once all images have been shown, direct the user to some page via document.location = "http://....."

由于所有图像都是预加载的,因此它应该运行流畅。升

编辑:或创建一个 gif,并在 X 秒后重定向用户......

于 2013-02-24T21:55:50.490 回答