$("#b_ocultar").click(function(){
$("#logo").fadeOut(500);
$("#b_ocultar").fadeOut(500);
$("#cabecalho").delay(500).hide(500);
var ocultar = 1;
});
What I have to do for I can use variable "ocultar" outside the function?
When you declare a global javascript variable as suggested in the accepted solution it is added to the window object anyway:
Open in new window
Regards