Event when slide is displayed in ioslides?

痴心易碎 提交于 2019-12-11 13:59:00

问题


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.


回答1:


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();");

to execute somecode(); when the slide is entered. See also this answer: Google IO Slides Template - Javascript on each slide



来源:https://stackoverflow.com/questions/33938768/event-when-slide-is-displayed-in-ioslides

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!