Q
Q
Qairat2017-04-03 14:12:43
PHP
Qairat, 2017-04-03 14:12:43

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;
            });

How to rewrite or supplement this code to make it work in Mozilla?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question