javascript - Dim background after iframe youtube video starts playing -


Hello :) Just like I want to reduce the background of my (WordPress) site as you start the YouTube video.

& lt; Iframe frameborder = "0" width = "660" height = "371" allowfullscreen = "src =" https: /www.youtube.com/embed/CMm6tDavSXg?feature=oembed">

; / Div & gt; .div_popup_overlay {display: none; Status: fixed; Top: 0; Left: 0; Width: 100%; Height: 100%; Background color: # 333; Opacity: .7; Z-index: 3000; }

and then trigger it with jQuery

  $ ("#YOUTUBEVIDEO") Click (function () {$ (". Div_popup_overlay") in fade ();});  

// More on some online $ (". Div_popup_overlay") FadeIn ();

So now I can not understand how to use YouTube API without properly embedding the video without the API

   

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -