Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7278935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:56:43+00:00 2026-05-28T22:56:43+00:00

I am trying to do a slow reveal on a particular div with an

  • 0

I am trying to do a slow reveal on a particular div with an id of ‘contentblock’ on page load. This is my first time trying to code something in jQuery and I continue to fail. The following is my latest attempt, but I’m a complete newbie to this and surprisingly google hasn’t been a whole lot of help.

<script type='text/javascript'>

$(window).onload(function(){
   $('#contentblock').slideDown('slow');
    return false;
 });


</script>

before that I also had the following instead of the window onload line above:

$(document).ready(function(){

But that didn’t have any success either. Can someone help a jQuery newbie out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:56:43+00:00Added an answer on May 28, 2026 at 10:56 pm

    First, you’ll need to make sure the element is hidden (or it won’t be shown, since it’s already visible). You can do this in either CSS or JavaScript/jQuery:

    #contentblock {
        display: none;
    }
    

    Or:

    $('#contentblock').hide();
    

    If you use CSS to hide the element you need to be aware that the element will remain hidden in the event of JavaScript being disabled in the user’s browser. If you use JavaScript there’s the problem that the element will likely flicker as it’s first shown and then hidden.

    And then call:

    $(window).load(function(){
       $('#contentblock').slideDown('slow');
     });
    

    I’ve made two amendments to your jQuery, first I’ve changed onload to load and I’ve also removed the return false, since the load() method doesn’t expect any value to be returned it serves no purpose herein.

    For the above jQuery you can use instead:

    $(document).ready(function(){
       $('#contentblock').slideDown('slow');
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying this code: function view_mail_popup_close() { setTimeout("function () { $('#popupbox').fadeOut('slow'); }",200); setTimeout("function
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
this is my first time posting on here and have read alot of helpful
So I'm trying to fine tune this slow ass controller action with New Relic
I'm trying to diagnose a slow stored procedure (see this question ) and I've
I am trying to troubleshoot why IE is slow slow processing this javascript compared
I'm trying to show a small loading image during a slow operation with jQuery
I'm getting terribly slow results from the following code. I've been trying to troubleshoot
I'm trying to prepend a div and load content in it with AJAX but
I'm trying to cache a page that gets/processes data from very slow API's -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.