The code below in jQuery runs perfectly fine in Google Chrome and Opera. The problem is that it does not work in IE and Firefox, before it worked.
// Jquery document...
$(document).ready(function() {
$('a[href^="#"]').click(function (event) {
var id = $(this).attr("href");
var target = $(id).offset().top - 200;
$('body').animate({scrollTop:target}, 300);
event.preventDefault ();
});
});