如何在页面上旋转/幻灯片显示文本DIV? [英] How to Rotate/Slideshow Text DIVs on page?

查看:75
本文介绍了如何在页面上旋转/幻灯片显示文本DIV?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试修改下面的脚本,以幻灯片显示/旋转一些文本DIV。


我需要这些DIV按顺序显示 - div 1,然后是div 2,然后是div 3.每次显示5秒,然后显示下一个div ...但是订单。


下面的脚本适用于随机div,但我需要它们按顺序 - div 1,div 2,div 3 ...每次。


展开 | 选择 | Wrap | 行号

解决方案

发布代码时请使用代码标签。


您需要做的就是摆脱随机部分并使用变量来跟踪要使用的连续div下。

感谢。我该怎么做呢?我没有尝试过任何工作,我在网上找不到任何关于这个的方法。


请发布你的一件事我试过,所以我可以看到你哪里出错。


I am trying to modify the script below to slideshow/rotate through a handful of text DIVs.

I need these DIVs to appear in order-- div 1, then div 2, then div 3. Each would appear for 5 seconds, then show the next div... but in order.

The script below works well for Random divs, but I need them to be in order-- div 1, div 2, div 3... each time.


Expand|Select|Wrap|Line Numbers

解决方案

Please use code tags when posting code.

All you need to do is get rid of the random part and use a variable to track which sequential div to use next.


Thanks. How would I go about doing that? Nothing I''ve tried has worked, and I can''t find anything that''s a ''how to'' about this online.


Please post one of the things you''ve tried so I can see where you went wrong.


这篇关于如何在页面上旋转/幻灯片显示文本DIV?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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