script works only in ie

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • raul76@gmx.de

    script works only in ie

    Hi,
    it should wave and change the messages.
    It works under ie but not under konqueror, mozilla, netscape etc.
    There is no error messages in the js console of those browsers.
    What dhould be changed?
    function initiate()
    {
    ...
    changemessage()
    }

    function enlargewave()
    {
    if (i_stepwave<=i_ maxstepwave)
    {
    wavemessage.fil ters.wave.phase =i_stepwave
    wavemessage.fil ters.wave.stren gth=i_stepwave
    wavemessage.fil ters.wave.light strength=i_step wave
    wavemessage.fil ters.wave.freq= i_stepwave
    i_stepwave++
    var timer=setTimeou t("enlargewave( )",50)
    }
    else
    {
    clearTimeout(ti mer)
    changemessage()
    }
    }

    function reducewave()
    {
    if (i_stepwave>0)
    {
    wavemessage.fil ters.wave.phase =i_stepwave
    wavemessage.fil ters.wave.stren gth=i_stepwave
    wavemessage.fil ters.wave.light strength=i_step wave
    wavemessage.fil ters.wave.freq= i_stepwave
    i_stepwave--
    var timer=setTimeou t("reducewave() ",50)
    }
    else
    {
    clearTimeout(ti mer)
    var timer=setTimeou t("enlargewave( )",pause)
    }
    }

    function changemessage()
    {
    i_message++
    if (i_message>=mes sage.length) {i_message=0}
    gettextcontent( )

    document.waveme ssage.document. write(textconte nt)
    document.waveme ssage.document. close()
    var timer=setTimeou t("changemessag e()",pause)


    }
    TIA
    raul
  • Randy Webb

    #2
    Re: script works only in ie

    raul76@gmx.de wrote:
    [color=blue]
    > Hi,
    > it should wave and change the messages.
    > It works under ie but not under konqueror, mozilla, netscape etc.
    > There is no error messages in the js console of those browsers.
    > What dhould be changed?[/color]

    Its totally shocking to me that it doesn't show errors in the non-IE
    browsers since 99% of your code is IE-only syntax/features.

    <--snip bunch of IE only code-->

    Now I see. How are you calling the functions??

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    Working...