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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:01:54+00:00 2026-05-20T14:01:54+00:00

I am working on a Web site for a restaurant, and as the menu

  • 0

I am working on a Web site for a restaurant, and as the menu page is somewhat expansive (I am putting the full menu on the site since it is not changed very often), I added some links at the top that jump to specific sections. Even so, the sections near the bottom are somewhat short, and it can be tricky to tell which one you actually jumped to. Setting a :target selector for the headings works, but I don’t like the fact that whatever effect I use to distinguish the header never actually goes away.

Is it possible to use jQuery to apply a “yellow fade” effect to an element when it is targeted by an internal link, so that you can tell where you jumped but it doesn’t stay around and clutter the page?

  • 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-20T14:01:55+00:00Added an answer on May 20, 2026 at 2:01 pm

    The way i do it below includes using the jQuery-ui library, specifically $("#something").effect("highlight", "slow");

    this will result in a brief pulse of color on whatever was selected by jQuery. For your solution, you would need pulse the Anchor’s header element briefly after clicking on the table of contents.

    <a href="#someTarget" class="tableOfContents">good food</a>
    ....html
    
    <a id="someTarget">Good Food</a>
    <script type="text/javascript" src="jquery-ui-1.8.9.custom.min.js"/>
    <script>
     $(document).ready(function(event){
      $(".tableOfContents").click(function(event){
         $($(this).attr("href")).effect("highlight", "slow");
       });
    });
        </script> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a web site (not a web application) in VS 2008 .Net
I'm working on a web site under a Linux environment (Debian). I'm not an
The web-site I'm working on is specially designed for Android. The user will not
I'm working on a new web site that currently is configured as a full
I am working on a web site with several other developers and we have
I'm working on a fairly large web site built in PHP that will potentially
I'm currently working on an intracompany web site which will be viewed on cell
I'm currently working on an ASP.NET web-site. In one of my pages, I had
I am working on an asp.net web site that is based upon a single
I am working on a medium size web site that has plenty of custom

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.