View Full Version : MM_preloadImages() displaying appropriate .gif on appropriate page

05-31-2005, 04:16 PM
I have been tasked to make the following javascript code work (again). The basic layout of this page has changed several times. For example, the addition of the 'stewlist' menu item and subsequent pages.
The idea was to get this page to preload the mouse over graphics on page load...And when you would use the side navigation and click the desired link, it would stay in its mouse-over state for that page. In my should look like example, you will see 'stewlist.'

The webpage (http://www.integreat-dev.com/)
javascript used (http://integreat-dev.com/inc/menus.js)

The image rollover effect works. What needs to happen is the roll over image needs to stay in its roll-over state for the corresponding page...
image (http://community.neosaw.com/wp-content/correct_appearence.jpg)


why did this work a while ago and not now?
only added a new _omo.gif, new directory (stewlist). Pages went from .html to .shtml...does this matter?

05-31-2005, 05:37 PM
On further inspection, its probably not the above listed javascript...

Its more likely to be located in the <body onload="bleh"> tag.
This tag is found on every page on the website dir tree. Each page has its own corresponding folder. Each folder has an includes folder (../inc)

The navigation menu can be found here for the main page: navigation menu (http://integreat-dev.com/inc/menu.inc)

Does this included menu that is loaded need to have an exception for each directory so it will know which _omo.gif to display for THAT page? In other words, the menu.inc file for the stewlist would be located in /stewlist/inc and have a slightly different mark up than that of the join page (/join/inc/menu.inc)?
This would make sense, but I still dont know how to go about it.

05-31-2005, 06:33 PM
got it.
it was as simple as updating the /inc/menu.inc for each subdir