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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:34:55+00:00 2026-06-09T01:34:55+00:00

What I did is actually I added some fade in effects for several divs

  • 0

What I did is actually I added some fade in effects for several divs with css3. At first it looks nice, but when you start browsing through the site it becomes annoying to see this effect so I decided not to get rid of the animations, but to leave it only for the main page. So, actually I have this jQuery code:

if (it is www.mydomain.com, but not www.mydomain.com/aaaa (or anything) ) {
$("#header").addClass("class1 class2 class3");

} else {
$("#header").removeClass("class1 class2 class3");
}

How to check if there is anything after mydomain.com/… or you can come up with a better solution?

I cant do this with css as I will be adding content to header.php file which is necessery for all of the pages.

  • 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-09T01:34:57+00:00Added an answer on June 9, 2026 at 1:34 am

    Assuming you’re index page has a pathname of /, and that other pages have a pathname that is longer than one letter, you could do:

    if (document.location.pathname.length > 1) {
         //do something
    }
    

    Or if your index page has a certain element that the other pages does not have, you can do:

    if ($("#elementID").length) {
         //do something
    }
    

    or if you do :

    <body class="index">
    

    in your html, you can do:

    if ($('body').is('.index'))  {
         //do something
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There were a lot of promises and hopes, but did MS actually get around
Did actually someone make already a tutorial that shows how to customize an UITableView?
Did some searches here & on the 'net and haven't found a good answer
Did you ever have the following situation: you need to store information, but a
Did about 30 minutes worth of searching, found lots of relevant info, but none
Did some googling and couldn't find a clear answer on this. My assumption is
I did some little experimentation on this. I created an boolean attribute, named isFault.
I am facing some problem with MySQL database. actually It was fast when I
I know its a common question asked several times on SO. But help me
I'm sure I'm making a rookie mistake with java(this is actually my first program).

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.