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

  • Home
  • SEARCH
  • 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 8238681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:53:47+00:00 2026-06-07T19:53:47+00:00

How do I get the below to only fade back in after all of

  • 0

How do I get the below to only fade back in after all of the stuff within the fadeOut has fully loaded and is ready to display? Whats happening is the image on the upper right corner of the textbox is jumping and not fadeing in smoothly the first time you load page which is annoying.

P.s dont ask about the webpage design I just built it lol

http://goodeggsafety.com/dev/

//In-car child safety scotland

        $("#link_1").click(function(e) {

         e.preventDefault();

         var img = $("#childbig2").attr('src');//Get current image

         if(img != 'images/childbig.png'){ //Check if current image is the clicked image if not carry on..
            //Variables
             var imgurl = 'images/childbig.png';
             var flag = 'images/scotland.png';
             var html = 'Visit the Scottish<br /> In-Car child safety<br /> campaign website. <br /><br /> Expert advice on seat and stage selection for your child. <br /><br />';
                 html = html + 'Car seat checking clinics - check<br /> when and where they are in your<br /> area for you to attend and have<br /> your seat checked by a Good Egg<br /> In-Car Expert. <br /><br /> News updates, competitions and much much more.';

             var linkurl = 'http://www.protectchild.co.uk/';//Link url 

              $("#content_1").fadeOut(600, function(){//fade out
                  $("#childbig2").attr('src', imgurl);//change image
                  $("#childbig2").attr('alt', 'In-Car Child Safety');//change image alt tag
                  $("#title_img").attr('src', flag);//change flag
                  $("#title_h2").html('Scotland');//change title
                  $("#text_title").html('In-Car Child Safety'); //Change second title
                  $("#text_content").html(html);//Change main text content
                  $("#weblink").attr('href', linkurl);//Change link url
                  $("#weblink").attr('title', linkurl);//Change link title
                  $("#arrowlink").attr('href', linkurl);//Change link on arrow url
                  $("#arrowlink").attr('title', linkurl);//change link on arrow title    
              }).fadeIn(600);//fade in speed, miliseconds   
          }
        });
  • 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-07T19:53:49+00:00Added an answer on June 7, 2026 at 7:53 pm

    You must bind the .fadeIn function of “*content_1*” to .load on the img Node (childbig2):

    $("#content_1").fadeOut(600, function(){
      var $content = $(this);
      var $childbig2 = $("#childbig2");
    
     $childbig2  
        .load(function() {
            $childbig2.off('load');
            $content.fadeIn(600); //fade in speed, miliseconds 
        })
        .attr('src', imgurl)
        .attr('alt', 'In-Car Child Safety') //change image alt tag
    
      $("#title_img").attr('src', flag);
      $("#title_h2").html('UK');
      $("#text_title").html('In-Car Child Safety'); 
      $("#text_content").html(html);
      $("#weblink").attr('href', linkurl);
      $("#weblink").attr('title', linkurl);
      $("#arrowlink").attr('href', linkurl); 
      $("#arrowlink").attr('title', linkurl);  
    }); 
    

    You can use .off brand new feature on jQuery 1.7.x.

    Note that binding .load() means: “do XX when image has been loaded”. In this case “do fadeIn() of your parent”.

    Also for IExplorer cache compatibility: use first .load() and then .attr()

    Remember to unbind (off() function), otherwise it would be queued (called) every time load() function is applied.

    Regards

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get only unique departments from the below example? Dept Id Created
I want to get only data until the <img tag. my codes are below:
I want to be able to display the following code below only when a
I need to get from the line below only these parts: Jony, Smith and
Following is my code with the business logic. I get below json by calling
The two programs below get n integers from file and calculates the sum of
I am trying to get the below linq query to return -1 if there
I'm trying to get the below cURL operation to login on a bangme.net picture
I have a website that I get the below error on whenever I navigate
Using SQL Server 2005 how do I get the below statement or rather the

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.