Connecting Tech Pros Worldwide Forums | Help | Site Map

script works only in ie

raul76@gmx.de
Guest
 
Posts: n/a
#1: Jul 20 '05
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.filters.wave.phase=i_stepwave
wavemessage.filters.wave.strength=i_stepwave
wavemessage.filters.wave.lightstrength=i_stepwave
wavemessage.filters.wave.freq=i_stepwave
i_stepwave++
var timer=setTimeout("enlargewave()",50)
}
else
{
clearTimeout(timer)
changemessage()
}
}

function reducewave()
{
if (i_stepwave>0)
{
wavemessage.filters.wave.phase=i_stepwave
wavemessage.filters.wave.strength=i_stepwave
wavemessage.filters.wave.lightstrength=i_stepwave
wavemessage.filters.wave.freq=i_stepwave
i_stepwave--
var timer=setTimeout("reducewave()",50)
}
else
{
clearTimeout(timer)
var timer=setTimeout("enlargewave()",pause)
}
}

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

document.wavemessage.document.write(textcontent)
document.wavemessage.document.close()
var timer=setTimeout("changemessage()",pause)


}
TIA
raul

Randy Webb
Guest
 
Posts: n/a
#2: Jul 20 '05

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.javascript FAQ - http://jibbering.com/faq/

Closed Thread