在ioslides中显示幻灯片时的事件? [英] Event when slide is displayed in ioslides?
本文介绍了在ioslides中显示幻灯片时的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当 ioslides 演示文稿中的页面更改时是否会触发事件?我想分配一些资源来显示幻灯片,并在用户移动时释放它们.
Is there an event triggered when there's a page change in an ioslides presentation? I'd like to allocate some resources to display the slide, and release them when the user moves on.
推荐答案
是的,ioslides 会在每张幻灯片上触发 slideenter
和 slideleave
事件.这些当前作为字符串处理,因此您可以使用 Javascript 之类的
Yes, ioslides triggers slideenter
and slideleave
events on each slide. These are currently handled as strings, so you'd use Javascript like
slide.setAttribute("slideenter", "somecode();");
在进入幻灯片时执行somecode();
.另请参阅此答案:Google IO 幻灯片模板 - 每张幻灯片上的 Javascript一个>
to execute somecode();
when the slide is entered. See also this answer: Google IO Slides Template - Javascript on each slide
这篇关于在ioslides中显示幻灯片时的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文