salve a tutti sto provando a far visualizzare un certo div fixed dopo che window.pageYOffset assume il valore 500.
ho realizzato sta cosa qua ma non funziona.
Codice PHP:
$(document).ready(function() {
var 
top window.pageYOffset;

if ( 
top 499 ) {

document.getElementById("fixed").style.display "block";
} else {

document.getElementById("fixed").style.display "none";
}