This function does not work in firefox and IE:
No javascript:
function scrollTo() {
var _offset = 90;
$('html, body').animate({ scrollTop: $('#videoItem').offset().top - _offset }, 'slow');
return false;
}
No HTML:
<div class="videoItem" onclick="javascript:scrollTo();"></div>
Can anyone help me? Thank you.