I've designed a website that appears to have multiple pages, but in reality, all the content is contained within one HTML file: index.html. Using javascript and CSS, I have divided the site into a "home" position and an "inside" position similar to a home page and inside page. Now, I'm facing an issue where links are not behaving as expected when a user navigates from the home page to an inside page.
You can view a simplified version of the page here:
On this example site, there's just the home page and the "Services" page accessible through links.
When you mouseover the grey links (referred to as "balloons" in the code) on the left side, they should change color and display a popup graphic only when the page is in the "home" position. This behavior is controlled by a class called "popup_yes." However, even after removing this class upon navigating to the "Services" page, the hover/popup action still persists.
Upon inspecting the element using Chrome, I can see that the "popup_yes" class has been removed from the code, yet it continues to influence the hover/popup functionality. You can see a comparison between the "home" and "inside" pages in this screenshot from Inspect Element:
https://i.sstatic.net/p1ZP7.jpg
I'm seeking assistance to understand why the hover/popup action is still active on the "Services" page despite removing the "popup_yes" class. Any insights or solutions would be greatly appreciated. Thank you!