Answer the question
In order to leave comments, you need to log in
How to properly write ScrollTop in FireFox?
Hello!
This code works in google chrome:
$('div.full-text img').click(function() {
var $loc = $(this).attr("src");
$("#overlay_container img").attr("src", $loc);
var $scrollnumber = $("body").scrollTop();
$(".overlay").show().css('top', $scrollnumber-150);
return false;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question