Solved

iframe or DIV Swap

Posted on 2014-10-07
4
85 Views
Last Modified: 2015-01-02
http://the surfers view dot com

Can anybody point me in the direction of how they get their video to stop playing after 2 min like that and swap it with an ad?
0
Comment
Question by:-TNT-
4 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40368763
if you use the onStateChange to know whene the video start playing, you can start a 2 seconds timer to display an overlay div over the video, basicaly the video container and the overlay div are in the same container with : position:absolute, same top and left and the div have a greate z-index of come after the video. you put yoru add inside this overlay div.

https://developers.google.com/youtube/js_api_reference?hl=fr#Events
0
 

Author Comment

by:-TNT-
ID: 40393545
Awesome!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now