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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:21:40+00:00 2026-06-17T12:21:40+00:00

I have searched through StackOverflow posts and various forums, but cannot find an answer.

  • 0

I have searched through StackOverflow posts and various forums, but cannot find an answer. I have found answers for similar questions, but nothing breaks it down quite enough for me to understand. I understand a good deal of PHP and HTML, but am having difficulty with scripts.

How can I click on a link, get the href (or what do I need?), have it fade out the current content, find the content I’m trying to load (href or whatever in the link) and load it, then fade it in?

My previous problems with random bits of code I’ve tried:

  1. While going from page to page if another link was clicked while loading, it would only partially fade the second page in.

  2. Each link had to have it’s own script to direct it there. Could never figure out how to make it get the href of the link clicked.

  3. Examples were so complicated I couldn’t modify them to what I needed exactly. I need to understand the process of it.

  • 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-17T12:21:40+00:00Added an answer on June 17, 2026 at 12:21 pm

    Something like:

    $('.link').on('click', function(){
       $('.content').fadeOut().load('/path/to/script', function() {
          $(this).fadeIn();
       });
    });
    

    The key to this to use a HTML page or PHP script which can return the content you want. You might want to retrieve the URL from another element or hard-code it into your script – your call. For more information about how load() works, visit jQuery’s documentation.

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

Sidebar

Related Questions

I have searched through stackoverflow and has found similar question. As I am still
I have searched quite extensively throught stackoverflow but unfortunately found no conclusive answer to
I've searched and searched stackoverflow and www, but have found no answers to this
I have searched for a general solution to this but only find answers to
I have searched through the posts in stackoverflow and I hope this is not
I have searched through StackOverflow and have seen various topics on how to do
Ok, I know similar questions have been asked, but my groveling through Google searches
I've searched through many posts on stackoverflow for an answer, and prehaps I'm just
I've searched through stackoverflow and google's extension FAQ but could not seem to find
This might sound like a duplicate, but I have searched through the forum questions

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.