1
This function does not work in firefox and IE:
In javascript:
function scrollTo() {
var _offset = 90;
$('html, body').animate({ scrollTop: $('#videoItem').offset().top - _offset }, 'slow');
return false;
}
In HTML:
<div class="videoItem" onclick="javascript:scrollTo();"></div>
Can anyone help me? Thank you.
Rename the function, This name is from another native method of JS. http://www.w3schools.com/jsref/met_win_scrollto.asp. And see if it works
– Miguel
Thanks, it worked! Only in Chrome the screen gives a blink, know tell me why?
– Munir Baarini
I think it might be some callback, checks that other functions are running
– Andrey Hideki Nakano