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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:59:08+00:00 2026-06-11T07:59:08+00:00

I am working with some existing code and there is a preloader which loads

  • 0

I am working with some existing code and there is a preloader which loads some images for the navigation rollover state. It looks like this:

<body onload="MM_preloadImages('Images/Home-over.png','Images/Signup-over.png','Images/Costs-over.png','Images/Team-over.png','Images/Process-over.png','Images/Scholarships-over.png','Images/Login-over.png','Images/FAQ-over.png','Images/Contact-over.png','Images/About-over.png')">

An example of one of the nav items using the above is below:

 <div id="Layer-15" class="Contact"  > <a href="contact.html"><img src="Images/Contact.png" alt="Contact" name="Contact" width="98" height="56" border="0" class="pngimg" id="Contact" onmouseover="MM_swapImage('Contact','','Images/Contact-over.png',1)" onmouseout="MM_swapImgRestore()" /></a></div>

Now all of the above is in the root folder.

When I go one folder deep, the nav breaks:

My code looks exactly the same as that posted above except that I prefix each reference to an image with ‘../’, e.g. ‘../Images/Home-over.png’ to send it back to the root folder first.

Unfortunately this does not work.

As nothing else is broken it seems to me that the images are not getting pre-loaded and this will most likely be because the image path is wrong.

However I’m not sure how it can be or how I go about figuring out the correct path?

All help is appreciated.

Thanks

  • 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-11T07:59:09+00:00Added an answer on June 11, 2026 at 7:59 am

    The problem behind this was that the entire page code was getting duplicated due to a duplicate ‘includes’ statement in my php and this then prevented the styling of the nav bar.

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

Sidebar

Related Questions

I'm working on some existing code. After a few hours, I've boiled this problem
Working on existing code, I recently found smt like this: if(Config.ExceptionBehavior.DEBUG_EXCEPTIONS) { foo.Foo(); }
I'm working on some existing c++ code that appears to be written poorly, and
I'm working on modifying some existing code for a payment gateway and I'm not
I'm trying to update some existing code that normally runs a Perl script which
I'm new to StructureMap and have some existing code that I'm working with that
I'm working with some, unfortunately largely undocumented, existing code and I'm having trouble understanding
I'm working on extending an existing ASP.NET MVC project, and there are some oddities
I'm looking through some existing code in a project I'm working on, and I
I'm currently working on databinding some of my existing Windows Forms, and I've ran

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.