Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disappearing Navigation 1

Status
Not open for further replies.

lindsaystrachea

Technical User
Feb 13, 2008
2
CA
Hey everyone,

New to the forum and new to javascript.

I'm currently working on a website that I didn't create. Here is the url:

It has a navigation element on the left that disappears when it is moused over. It started doing this when I added Lightbox2. So I'm assuming there is some sort of conflict in the scripts but I have no idea where one would look.

Any ideas on what it could be would be greatly appreciated.

Thanks

D
 
It's the paths of the images you're trying to switch to.

In your mouseover code:
Code:
onmouseover="changeImages('nav_04', 'images/nav_04-Programs-and-Service.gif'); return true;"

You're using relative paths... from the URL of that page it tries to evaluate that relatively, ending up with:
[tt][/tt]

Which doesn't exist rather than:
[tt][/tt]

Which I presume is the graphic you're shooting for.

Either get your relative paths straightened out - compensating for the additional two levels of folders by using ../
Code:
onmouseover="changeImages('nav_04', '../../images/nav_04-Programs-and-Service.gif'); return true;"

Or make the URLs qualified from the root directory:
Code:
onmouseover="changeImages('nav_04', '/images/nav_04-Programs-and-Service.gif'); return true;"


Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.

Webflo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top