function hideIt() -does not work in MAC IE??? Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephan

    function hideIt() -does not work in MAC IE??? Help

    Hi everyone.

    I'm using Macromedia's " function MM_showHideLaye rs() " to show a layer,
    triggered by an image in the body of the file on load:

    <IMG height=380 src="images/verybg.gif" width=185
    onload="MM_show HideLayers('Lay er2','','show') ">

    This works fine on the Mac and PC Internet Explorer. Simple.

    But, I want to hide the layer after 8 seconds or so. What I did was use
    this:

    function hideIt() {
    timer=setTimeou t("MM_showHideL ayers('layer2', '','hide')",800 0);
    }

    And I trigger "hideIt" by another image in the body like this:

    <IMG height=176 src="images/intro.gif" width=190 onload ="hideIt();retu rn
    false">

    On a PC, this all works fine. The layer shows for about 8 seconds then
    hides. On a Mac Internet Explorer, the layer shows, but then does not ever
    hide.

    What could be wrong? Is there anything Mac IE is very sensitive about that
    I'm missing. Is there a better way to hide a layer after a determined time?

    Any help would be great.

    Jeff


  • Jim Ley

    #2
    Re: function hideIt() -does not work in MAC IE??? Help

    On Fri, 16 Jan 2004 01:08:43 GMT, "Stephan" <nothanks@nope. com> wrote:
    [color=blue]
    >I'm using Macromedia's " function MM_showHideLaye rs() " to show a layer,
    >triggered by an image in the body of the file on load:[/color]

    With commercial products, it's always best to get commercial support,
    after all, if it's a bug in their software they'll want to know about
    it to get it fixed.
    [color=blue]
    >What could be wrong? Is there anything Mac IE is very sensitive about that
    >I'm missing. Is there a better way to hide a layer after a determined time?[/color]

    Nothing obvious, but it's presumably the onload not firing...

    Jim.
    --
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Mick White

      #3
      Re: function hideIt() -does not work in MAC IE??? Help

      timer=setTimeou t("MM_showHideL ayers("+"'layer 2','','hide')", 8000);

      Mick

      Comment

      Working...