PDA

View Full Version : Time delayed pop up divs



samslystone
08-29-2013, 04:53 PM
Hi All

A little stuck with pop up video divs. I current have one div pop up on load here:

http://www.samuelfouracre.com/indexworkingpop.html

However, I would like to close this div once played and have another open directly after (in another position on the same page). So essentially I want to add a delay on the second popup div.

Can anyone help?

All the best

Samuel

Strangeplant
09-03-2013, 02:20 PM
Forget the Vimeo and you can do wonderful things with Flowplayer and JQuery. Flowplayer has an onFinish event that can call a function (read here jquery function) to rewrite the page's html and so show a div with delayed execution, and start another Flowplayer instance. See: http://flash.flowplayer.org/documentation/events/clip.html. As to the jquery, you already have it in your page, so you might as well use it to do what you want.

molendijk
09-03-2013, 09:45 PM
You may be interested in THIS (http://www.dynamicdrive.com/forums/showthread.php?74270-Playing-watch_popup-videos-using-the-YouTube-Api-for-embedding-videos). The script can be adapted to what you want.