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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:29:27+00:00 2026-05-27T07:29:27+00:00

Below, I have pasted a link to my JQuery enabled webpage. Looking at the

  • 0

Below, I have pasted a link to my JQuery enabled webpage. Looking at the source code, you can see I used

$('html').not(this).fadeTo('fast', 0.25);

trying to make the whole screen fade except for a clicked DIV. Unfortunately, whenever I test this out, I find that everything is faded, including the DIV that is supposedly unselected in the above command. Why is this happening and how can I fix it?

Any and all help is greatly appreciated!

Feel Free to view the source code at:
http://numberonekits.com/SchoolWeb/index.html
The CSS and other JS files are in the same directory.

Below is the relevant code:

<body>
//other stuff that should be faded...
<div id="templatemo_content_wrapper">
//other stuff that should be faded...
<div id="templatemo_sidebar">
//other stuff that should be faded...
<div id="announce">

<p>This is the DIV that shouldn't be faded</p>

</div>
//other stuff that should be faded...
</div>
//other stuff that should be faded...
</div>
//other stuff that should be faded...
</body>
  • 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-27T07:29:28+00:00Added an answer on May 27, 2026 at 7:29 am

    As long as this is not the html element, you will be fading the html element, which will fade all of its descendants.

    I haven’t look at your source, but it sounds like you have a group of siblings.

    If so, you need to select them, and do .not(this) on that selection.

    Something like:

    var sections = $('.top_sections');
    
    // then on some event
    sections.click( function() {
        sections.not( this ).fadeTo('fast', 0.25);
    });
    

    Posting alternate solution from comment below:

    Since the element you want to highlight is nested inside ancestors whose other descendants you want to obscure, you should…

    …Take a different approach. Use layers.

    Have a div that covers the width and height of the entire page. Let’s call it blocker. Place it at z-index:100 or something. Make it background:#FFF and opacity:0.

    Then when you want to highlight the announce section, set its z-index to something higher than 100 (or higher than the z-index of the blocker), and then fade in the blocker to opacity .75.

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

Sidebar

Related Questions

The code I have pasted below is meant to display images on the middle
I have a plot (sample code pasted below) that I am trying to add
I have below html code in my aspx. <input type=hidden id=medicalLink value='<a href=/forms/contactus.aspx >Contact
I have below code in html. <li class=selected runat=server id=lihome><a href=/ISS/home.aspx title=Home><span>Home</span></a></li> Now I
I have the code below: <html><body> <?php $con = mysql_connect(localhost,will,blahblah); if (!$con) { die('Could
below i have a code that runs in most of my simple programs ..
I'm fairly new to ggplot. I have made a bumpplot using code posted below.
I've got a set of product listings that each have a link below them
I am trying to: click on the link shown below and have the value
I have a MenuItem like below <MenuItem Header=Edit> <MenuItem Header=Copy Direct Link Icon={StaticResource CopyIcon}

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.