From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

AdQuestions

4
comments
154
views

Preload and states

Hi, do I understand it correct if I could use dhtml.getState() and dhtml.sharedEvents to se if a the banner itself is visible on the page? Source: /support/documentation/build-html5-banners/html5-banner-specifications/preload-and-states/ Example: var state = dhtml.getState(); dhtml.sharedEvents.on('changed:state', function (s) { state = s; if (state == "visible") { // Start the animations in the banner when the user scrolls to the banner } });

Comments (4)
comments powered by Disqus