Function to click on word hide div

3

Scrolling down the scroll in this example ( link ) you will notice that has a box that is fixed with the word "close".

By clicking on the word "close" it disappears, but when it re-scrolls the page it reappears again.

I would like some help in adjusting the functions in addition to continuing to work the scroll fixed, clicking on the 'close' it disappears and will not appear any more (until the next refresh > of the page.)

Follow the link link

    
asked by anonymous 08.04.2014 / 01:07

1 answer

3

Remove the page element after fadeOut

//fechar box
$("#close-link").click(function(){
    $('.element').fadeOut(function(){
        $(this).remove();
    });
});
    
08.04.2014 / 01:34