Connecting Tech Pros Worldwide Help | Site Map

script works only in ie

  #1  
Old July 20th, 2005, 03:29 PM
raul76@gmx.de
Guest
 
Posts: n/a
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
  #2  
Old July 20th, 2005, 03:29 PM
Randy Webb
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form will 'fire' only in IE?? scubak1w1 answers 3 April 2nd, 2008 03:38 AM
Image swap only works in IE LAshooter answers 12 March 6th, 2006 12:55 PM
Javascript works only in IE Angelos answers 1 July 23rd, 2005 09:58 PM
Disabling options in option list only works in IE Fluffy Convict answers 4 July 23rd, 2005 04:45 PM