Results 1 to 6 of 6

Thread: Body Onload Problem..

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

    Default Body Onload Problem..

    i am using two scripts that both contain <body onload...the pop-it menu, and the mouseover image...i have solved the issue by writing the following code to allow both scripts to work> onload=init;getcontent_height;

    but here is my problem. everything works fine in firefox browser, but when i open the website in explorer the pop-it menu does not work, but the mouseover image script does???? heres the link to the site> http://www.ikonmusic.net/practice.html

    i need to solve this issue very soon. thanks for any help

  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

    Get rid of:
    Code:
    onload=init;getcontent_height;
    Use:
    HTML Code:
    <body onload="init();getcontent_height();">
    - John
    ________________________

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

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

    Default

    ok i put that in and it still does the same thing..the drop down menu works in firefox, but not in internet explorer....any other suggestions?

    btw..if you open the website in IE, youll see at the bottom of the screen it says "Error on page"...

  4. #4
    Join Date
    Aug 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    when you double click on the error, it should tell you where the error is, doesnt it? If there are multiple errors, you should be able to see the next/previous one by clicking the appropriate button in the msg.
    at the bottom of the screen it says "Error on page"...
    Stefan

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

    Well, I had assumed you had installed the scripts correctly to begin with and not deviated from the instructions or rewritten things at all. The 'Pop-it menu' script as now written on your page belongs in the body. Preferably right after the body tag. First get rid of:
    HTML Code:
    <div id="popitmenu" onmouseover="clearhidemenu();" onmouseout="dynamichide(event)"></div><div id="popitmenu" onmouseover="clearhidemenu();" onmouseout="dynamichide(event)"></div><div id="popitmenu" onmouseover="clearhidemenu();" onmouseout="dynamichide(event)"></div>
    from the body section. In fact, replace the above with the script.

    Then it should work in both browsers. You have another error on the page in FF but, if it is working as you like, I would not worry about it. It comes from the 'Scrollable content III' script on the page in the iframe.

    Added Later:
    I just had a look at the original script and it says to put it in the head. This is not the ideal place for it though. Your work around for that fact was to put those "popitmenu" divisions in the body. This fixed it for FF but broke it for IE. So, I take back my accusatory tone, sorry about that.
    Last edited by jscheuer1; 08-18-2005 at 10:12 PM.
    - John
    ________________________

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

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

    Default

    thank you...everything is resolved

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
  •