Connecting Tech Pros Worldwide Help | Site Map

script works only in ie

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 02:29 PM
raul76@gmx.de
Guest
 
Posts: n/a
Default 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.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, 02:29 PM
Randy Webb
Guest
 
Posts: n/a
Default 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/

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.