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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:31:15+00:00 2026-05-13T10:31:15+00:00

Possible Duplicate: Trouble with jquery lavalamp For some reason my background color shoots back

  • 0

Possible Duplicate:
Trouble with jquery lavalamp

For some reason my background color shoots back to the leftmost link no matter what link I click on. Anyone know how to get it to stay on the clicked link?

css

#lamp {
float:left;
margin:25px 0px 0px 90px;
clear: both;
}

.lavaLamp {
position: relative;
height: 29px; width: 400px;
background: #000000 no-repeat top;
background-image:url('http://wildfire-restaurant.com/images/lampback.png');
padding: 15px; margin: 10px 0;
overflow: hidden;
float:left;
}
    /* Force the list to flow horizontally */
    .lavaLamp li {
        float: left;
        list-style: none;
    }
        /* Represents the background of the highlighted menu-item. */
        .lavaLamp li.back {
            background:  no-repeat right -30px;
            width: 9px; height: 30px;
            z-index: 8;
            position: absolute;
        }
            .lavaLamp li.back .left {
                background: #BD5108 no-repeat top left;
                height: 30px;
                margin-right: 9px;
            }
        /* Styles for each menu-item. */
        .lavaLamp li a {
            position: relative; overflow: hidden;
            text-decoration: none;
            text-transform: uppercase;
            font: bold 14px arial;
            color: #fff; outline: none;
            text-align: center;
            height: 30px; top: 7px;
            z-index: 10; letter-spacing: 0;
            float: left; display: block;
            margin: auto 10px;
        }

jquery

<script type="text/javascript">
$(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700 })});
</script>

site http://wildfire-restaurant.com/

  • 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-13T10:31:16+00:00Added an answer on May 13, 2026 at 10:31 am

    Each of your pages has the home page link set as class='current' If you want to have each page have it’s menu entry highlighted then you need to either:

    A) Update your WordPress code so different pages generate different navigation links (in other words, so that each page has its menu entry <li> set to class='current')

    An example: On your home page you have:

    <ul>
    <li class='current'><a href='#'>Home</a></li>
    <li><a href='#'>Menu</a></li> ... etc.
    

    Your menu page code needs to look like this:

    <ul>
    <li><a href='#'>Home</a></li>
    <li class='current'><a href='#'>Menu</a></li> ... etc.
    

    Looking at the WordPress Documentation it looks like your best be to make use of WordPress’ built-in Conditional Tag functionality.

    This is what Doug Neiner was trying to suggest you do.

    B) Use javascript to check the url of the page and then update your navigation links based on the URL.

    A is far more robust than B, and is therefore the option that I would recommend.

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

Sidebar

Related Questions

Possible Duplicate: select all checkboxes command jquery, javascript I am having trouble selecting all
Possible Duplicate: Sorting a tuple that contains tuples I am having some trouble with
Possible Duplicate: WPF and cross thread operations I am having trouble with a window
Possible Duplicate: When to use static vs instantiated classes I'm having a little trouble
Possible Duplicate: Android Emulator - Trouble creating user accounts I'm trying to register a
Possible Duplicate: Sha256 in Objective-C for iPhone Greetings, I'm having terrible trouble generating a
Possible Duplicate: Linked list implementation of Binary Min Heap (Having trouble with manipulation…) Greetings,
Possible Duplicate: ViewController not responding to didRotateFromInterfaceOrientation I'm having trouble with the didRotateFromInterfaceOrientation method
Possible Duplicate: RegEx match open tags except XHTML self-contained tags I am having trouble
Possible Duplicate: Delay pop-up for 10 seconds, only pop up once Im having trouble

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.