WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Reload Jquery Fade (2 posts)

  1. Bryonmathf
    Member
    Posted 11 months ago #

    Hi everyone,
    This is probably simple for a lot of you, I have tried a few things I was sure should work.. Thanks in advance for the help!

    My html is
    <div id="puff" style="display: none;">My Title</div>

    Later in the code I have,
    <script>
    $(window).load(function() {
    $( "#puff" ).show( "fade", {percent:100}, 6000 );
    });
    </script>

    I have tried the two below as reload codes, which I was sure would work..

    JQuery(function() {
    JQuery( "#puff" ).show( "fade", {percent:100}, 6000 );
    }

    and

    JQuery( "#puff" ).show( "fade", {percent:100}, 6000 );

    They did not work.

    http://wordpress.org/plugins/advanced-ajax-page-loader/

  2. Bryonmathf
    Member
    Posted 11 months ago #

    It was very simple, needed to 'reinclude' jquery js file

    jQuery( "#puff" ).show( "fade", {percent:100}, 6000 );
    jQuery.ajax({ url: '../wp-content/themes/twentytwelve/js/jquery-1.9.1.js', dataType: 'script', cache:true});

Reply

You must log in to post.

About this Plugin

About this Topic