Doe’s anyone know how I can replicate this? I’d like to show an a promo code after the video plays on my website.
Like the current chipotle facebook ad.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would have to have the Flash movie call your JavaScript function when it finishes playing. Alternatively you might use HTML5 video tag but it would work only on modern browsers.
For example if you are using Flowplayer then you would have to register a callback when the movie finishes playing using something like this:
and define yourFunction to do what you want to do when the movie finishes playing, like showing more content etc.
If you have your promo in a hidden div with id promo like this:
This is just the most basic example, you probably would like to make the code less obvious than to include it in HTML.