Results 1 to 3 of 3

Thread: Slashdot not working with onLoad

  1. #1
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slashdot not working with onLoad

    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:

    HTML 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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the tip. as it turns out the pics don't need that preload script to rollover... so weird. working fine now. thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •