<style>
.video {
position: relative;
}
.video > iframe {
z-index: 10;
}
.video > a {
position: absolute;
left:0;
top:0;
width:100%;
height: 100%;
display: block;
z-index: 100;
}
</style>
<div class="video">
<iframe src="http://glaz.inetvl.ru/embed/v2/?server=100-99e44525efa8424256000a72b5de0aba&camera=0&width=&height=&lang=ru" allowfullscreen="" frameborder="0" height="430" width="760"></iframe>
<a href="/onlajnkamery/views/111"></a>
</div>
if ($(this).hasClass('group')) {
VK.callMethod("resizeWindow", 800, 1275);
var offset = 0,
$body = $('body'),
getData = function(offset) {
VK.api('audio.get', {
owner_id: -1959,
offset: 0,
count: 50
}, function(pl_music2) {
if (pl_music2.response) {
$.each(pl_music2.response, function(key, value) {
key != 0 ? line += '<a id="pg' + key + '" href="' + value.url + '" class="sm2_link">' + value.artist + ' - ' + value.title + '</a>' : false;
});
$('.vkla.group-detail').html(line);
$('div[for="group-detail"]').trigger('click');
}
});
};
getData(offset);
$body.on('scroll', function() {
if ((($body.scrollTop() / $body.height()) * 100) > 70) {
offset += 50;
getData(offset);
}
});
}