Results 1 to 7 of 7

Thread: Pop-it menu doesnt work in IE

  1. #1
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Pop-it menu doesnt work in IE

    im using the Pop-It menu for my website> www.ikonmusic.net , but the menu only shows up and works in my firefox browser, not in explorer...can anyone help me with this? maybe im missing something in the html..thanks

  2. #2
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    any answers?

  3. #3
    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

    The demo here at DD works fine in both browsers. Your page is throwing errors in IE, looks like you have more than one script on the page. It could be an onload event conflict or a problem with two scripts using the same variable (or id, function, etc.) name. It throws an error in FF too, just one though, not enough to stop the script from working.

    This is a stock response:

    Note: Questions regarding multiple script usage are not usually replied to due to their time consuming nature. See this thread for more information, and this tutorial for one possible solution.

    Aside from the tutorial above, which usually is the solution when the problem is two different scripts, you may need to consult:

    http://www.howtocreate.co.uk/tutoria...allshow#refcon

    Which explains how two scripts on the same page may not use the same set of variable names, id names, etc. This is especially important if the problem is two copies of the same script on a page but, can come into play with two different scripts when the first step won't fix it.

    One other approach that works in both situations, if adaptable to one (or more) of the scripts, is to put one script in a borderless iframe. It will look like it is on the same page but, since it really is on a separate page, conflicts are no longer an issue.

    Added Later:

    Looks like if you were to remove this from the code, it should work in IE too:
    Code:
    if (ie5||ns6)
    document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')
    Last edited by jscheuer1; 09-28-2005 at 09:58 AM.
    - John
    ________________________

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

  4. #4
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    okay i took out that "if IE" line like you said, and it didnt do the trick...and yes, i have 3 scripts running on one page, i have the other two, which are working fine, inside the <body onload>, but the pop-it menu uses onclick, instead of onload, so i left that one by itself inside its script...and it works fine like that in firefox..

    when i checked what the error message was in IE, it said this: "menuobj.style" is null or not an object

    then i found that in my script, and heres what it looks like:
    menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
    menuobj.innerHTML=which
    menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
    menuobj.contentwidth=menuobj.offsetWidth
    menuobj.contentheight=menuobj.offsetHeight

    any idea?

  5. #5
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    upppp

  6. #6
    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's funny, all I had to do was remove the lines as suggested and it works fine here. Still has error(s) but, they are from the script for the scroller and are non-fatal.
    - John
    ________________________

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

  7. #7
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    your right, it works 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
  •