Log in
code
General Testing :: TEST 3 :: TEST 3
Page 1 of 1
code
- 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;
});
});
Re: code
- 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;
}
General Testing :: TEST 3 :: TEST 3
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum