Note that there are some explanatory texts on larger screens.

plurals
  1. POMake timer stop when user click on play on video
    primarykey
    data
    text
    <p>I have a video on another video. Now it works like, the first video closes after 20 seconds and user will be send to the secound video, but I want that when user clicks the play on the first video, the timer will be stopped and do not close the first videon after 20 seconds. What should I do?</p> <p>here are my codes</p> <pre><code>&lt;div id="luong_video_ads"&gt; &lt;div id="luong_video_ads_mes"&gt; &lt;div style="float:left;"&gt; &lt;p style="color: #565656; font-family: sans-serif; font-size: 13px;"&gt;Ad will be closed in &lt;span id="luong_video_ads_c"&gt;&lt;/span&gt; seconds &lt;/p&gt; &lt;/div&gt; &lt;div style="float:left;margin-left:30px;"&gt; &lt;input type="button" style="background: #ffe100; color: #474747; float: right; border: 1px solid #474747; border-radius: 5px; "value="Skip Ad" onclick="luong_video_ads_showMainVideo();"&gt; &lt;/div&gt; &lt;/div&gt; &lt;br style="clear:both;"/&gt; &lt;div id="luong_video_ads_player"&gt; &lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; luong_video_ads_time_wait = 30; luong_video_ads_showed = 0; luong_video_ads_embed = '&lt;iframe src="http://player.vimeo.com/video/17618255" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;'; luong_video_ads_main_embed = '&lt;object width="420" height="315"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Fcx-bRni7WM? version=3&amp;amp;hl=en_US&amp;amp;rel=0&amp;amp;autoplay=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/Fcx-bRni7WM?version=3&amp;amp;hl=en_US&amp;amp;rel=0&amp;amp;autoplay=1" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;&lt;/object&gt;'; function luong_video_ads_showAdsVideo(){ document.getElementById("luong_video_ads_c").innerHTML = luong_video_ads_time_wait; document.getElementById("luong_video_ads_player").innerHTML = luong_video_ads_embed; } function luong_video_ads_showMainVideo(){ if (luong_video_ads_showed&gt;0) return; luong_video_ads_showed = 1; document.getElementById("luong_video_ads_player").innerHTML = luong_video_ads_main_embed; document.getElementById("luong_video_ads_mes").style.display = 'none'; } luong_video_ads_int=self.setInterval(function(){luong_video_ads_clock()},1000); function luong_video_ads_clock(){ luong_video_ads_time_wait--; if (luong_video_ads_time_wait==0){ luong_video_ads_showMainVideo(); } document.getElementById("luong_video_ads_c").innerHTML = luong_video_ads_time_wait; } luong_video_ads_showAdsVideo(); &lt;/script&gt; </code></pre> <p>Thanks in advence</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload