Solved

iframe or DIV Swap

Posted on 2014-10-07
4
90 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-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

739 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