I have this JQuery (thanks to the help of a colleague here) in which when I scroll upwards the header appears and when I scroll downwards it disappears.
The thing is that I want to click on a certain link also , but my still ignorance can not get it out.
How do I get the click on the link? My intention is that whether you click on it or if you scroll up, the header appears.
$(document).ready(function() {
var lastScrollTop = 0;
$(window).scroll(function(event) {
var st = $(this).scrollTop();
if (st < lastScrollTop || $('#Conoceme').click(function());) {
document.getElementById("Cabecera").style.display = "block"
} else {
document.getElementById("Cabecera").style.display = "none"
}
lastScrollTop = st;
});
});