General Testing
test

Join the forum, it's quick and easy

General Testing
test
General Testing
Would you like to react to this message? Create an account in a few clicks or log in to continue.

code

Go down

code Empty code

Post by Ange Tuteur 1/3/2014, 06:49

Code:
$(document).ready(function() {
    $('.post .content embed').each(function() {
      var src = $(this).attr('src');
      $(this).before('<a href="'+src+'" target="_blank" id="yt_video">'+src+'</a>').remove();
    });
    $(document).on('click','#yt_video',function() {
      $('body').append('<div id="yt_filter" style="position:fixed;top:0px;left:0px;right:0px;bottom:0px;background:rgba(0,0,0, 0.5);cursor:pointer;z-index:10;"></div><div id="videoContent" style="position:fixed;top:100px;left:100px;right:100px;bottom:100px;z-index:12;"><embed allowfullscreen="true" allowscriptaccess="always" scale="exactfit" quality="high" wmode="transparent" type="application/x-shockwave-flash" src="'+$(this).attr('href')+'" pluginspage="http://www.macromedia.com/go/getflashplayer" style="width:100%;height:100%;"></div>');
      $('#yt_filter').click(function() {
          var stop = confirm('Do you wish to stop watching the video ?');
          if (stop == true) { $('#yt_filter, #videoContent').remove(); }
          else { return; }
      });
          return false;
    });
});
Ange Tuteur
Ange Tuteur
Administrateur

Country : code Aflag10
Female
Posts : 423
Reputation : 38

http://help.forumotion.com

Back to top Go down

code Empty Re: code

Post by Ange Tuteur 1/3/2014, 06:54

Code:
.class, #id {
color:red;
background:#00ff00;
border: 1px solid #f00; 111 The declaration has ended, but the color persists. .test
box-shadow:1px 2px 3px rgba(0,0,0,0.3);
font-size:1px;
}
Ange Tuteur
Ange Tuteur
Administrateur

Country : code Aflag10
Female
Posts : 423
Reputation : 38

http://help.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum