PDA

View Full Version : Slashdot not working with onLoad



prjewdevil
08-07-2007, 05:02 PM
1) Script Title: slashdot menu

2) Script URL (on DD):http://dynamicdrive.com/dynamicindex1/slashdot.htm

3) Describe problem: The site I am currently working on uses a mouseover image restore for the buttons on the top menu. I am trying to set-up the Slashdot menu as a left menu. The Menus will not collapse/expand if i have in the code:


<body onLoad="MM_preloadImages( IMAGENAMES....

If i take the MM_preloadImages part of the code out, the site will work fine, but I am being required to have the mouseover function for the top menu. Any ideas?

jscheuer1
08-07-2007, 06:14 PM
That is probably because MM_preloadImages() is overwriting sdmenu.js events. If so, it would need to be rewritten to addEvent/attachEvent rather than assign events directly, or perhaps a different sort of code for rollovers could be used. One that assigned events to the image tags themselves, rather than to their links might work out.

prjewdevil
08-07-2007, 06:29 PM
Thanks for the tip. as it turns out the pics don't need that preload script to rollover... so weird. working fine now. thanks