Good afternoon!
I would like to know if it is possible to create a function with Jquery unique to a specific browser
For example:
$(document).ready(function(e) {
$("#imagens a").click(function(e) {
var id = $(this).prop("id");
id = "Imagens/foto"+id+".jpg";
$(window).bind('scroll', setTopo);
$("#img_principal").css('display','block');
$("#img_principal").attr("src",id);
});
$(".titulo").click(function(e) {
$("#img_principal").css('display','none');
$(window).unbind('scroll', setTopo);
});
});
Where my function is:
function setTopo(){
$(window).scrollTop(2000);
}
I wanted when opening in Firefox / Opera the values (scrollTop) were others but with the same function, since the structure that I mounted presents difference when executed in these browsers. I used Chrome as a base and from there I started adapting in other browsers.
Thankful