Often in the forum to see someone asked how to let the film go to a frame to stay for a while to continue playing, in fact, very simple, as long as the global function setinterval () can easily be done. Add the following code to the frame you want to stay on: Stop (); Stop playing the movie Var fantast=setinterval (go,5000); The Go () function is set to be called once every 5 seconds. function Go () {//Custom functions play (); function content, is to continue to play the movie. Clearinterval (Fantast); Clear SetInterval () polling} NOTE: Set the SetInterval (), must correspond to clearinterval (), otherwise it will cause waste of system resources. Here in SetInterval () 5000, the unit is milliseconds. Which means 5 seconds. I hope this article will be of some help to you.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.