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 8941327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:16:28+00:00 2026-06-15T11:16:28+00:00

I have a problem with jQuery’s .animate feature on website I manage that’s bugged

  • 0

I have a problem with jQuery’s .animate feature on website I manage that’s bugged me since day one but I have yet to find a solution for (please refer to http://www.standrewsvoluntaryservice.org.uk/find.php).

When clicking on one of the coloured links, for example “Youth”, I have set the jQuery so that the links all cluster up at the right of the page and content appears for the selected link. In Firefox this works as expected, but in IE, Safari and Chrome there is a huge jump before the block settles at the top of the page, as it should.

Any help would be appreciated – I am not the best with jQuery and have searched many times for an answer but to no avail!

Edit: The jQuery that controls this show-hide-slide effect is:

<script type="text/javascript">
$(document).ready(function() {
$(".return_project_box").hide();
$('.info_show').click(function(){
    $(".area").hide();
    $(".find_body").delay(200).show();
        $(".project_area_displayer").hide();
        $(".find_body_projects").animate({
            width:"1000px"
            }, 400);
        $(".find_body_projects").removeClass("float_right");
        $(".project_box_constant").removeClass("small_project_box");
        $(".return_project_box").hide();
    var toggle_function = true;
    return false;
});

    var toggle_function = true;
    $('.youth_show').click(function(){
        $(".project_area_displayer").not(".youth").hide();
        $(".find_body").hide();
        if(toggle_function = true)
        {
            $(".youth").delay(200).slideDown();
            $(".find_body_projects").animate({
                width:"185px"
                }, 200);
            $(".find_body_projects").addClass("float_right");
                $(".project_box_constant").addClass("small_project_box");
        }
        $(".return_project_box").show();
        var toggle_function = false;
        $(".information").hide();
        return false;
    });
});
</script>
  • 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-06-15T11:16:29+00:00Added an answer on June 15, 2026 at 11:16 am

    Argh, okay I tried adding this as a comment but its too long. So I’m going to add it as an answer. Even though it doesn’t answer your question specifically.

    Its just a simple example of how to do what your doing whilst being DRY. It’s not a copy&paste implementation but your problem should disappear if you use something similar.

    <div id="find_container">
        <div class="find_body_projects float_right">
            <a href="#youth" class="find_item"></a>
            <a href="#youth_special" class="find_item"></a>
            <a href="#adult_special" class="find_item"></a>
        </div>
    </div>
    
    <div id="project_content">
        <div id="youth" class="project_item active"></div>
        <div id="youth_special" class="project_item"></div>
        <div id="adult_special" class="project_item"></div>
    </div>
    
    <script>
    $(function() { // On Doc Ready
        $('.find_item').on('click', function(e) { // Menu item is clicked
            e.preventDefault() // Prevent the default behavior of link
            var $chosen = $($(this).attr('href')) // Find the chosen page by using the href attr
            ,       $current = $('.project_item.active') // Find the currently chosen page by using the `.active` class
            if( !$chosen.length ) return false // Exit if the chosen page doesn't exist
            // Hide the current one
            $current.hide(function() {
                // Show the chosen one
                $chosen.slideDown()
            });
        })
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have such problem that jQuery onclick event dont see click on link inside
I have a problem in Jquery that whenever I click on checkbox and click
I have a problem of jQuery's live() function not working with click, mousedown but
I have a jQuery problem that I can't seem to work out on my
I have a problem with jQuery, for some reason, that code makes infinite loop:
i have problem at jquery post, php get. but i don't get any value.
I have a problem in jQuery, it is that I have an array to
I have a problem with jQuery, my code looks ok, but I'm getting an
I have a problem with jquery ui accordion I put the code that should
I have a problem with jquery and serialize method. I have a form, that

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.