Solved

iframe or DIV Swap

Posted on 2014-10-07
4
87 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

778 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