Click to See Complete Forum and Search --> : NS6 and 7 code execution problem


marko37
06-15-2003, 07:56 PM
I am running a slide show script that works great in IE, however when I run it in NS6 or NS7, the images transition super fast and eratically. Does anyone know of a potential workaround ?

I isolated the script from all of my page elements, and the problem still persists, so that tells me that the issue is confined to the script.

I have attached the page containing the script. Sorry for attaching the whole page, but i thought that the context may be important.

Jona
06-15-2003, 08:55 PM
Since the page contains images, it would be beneficial, and much easier, for us to help you with this script if you put it online and provide us with a link.

You may also want to try changing <script language="JavaScript1.2"> to <script type="text/javascript"> because the language attribute is known to cause different array handling in Netscape. (Although, I am not sure if this has been fixed in NS6+ browsers, it is a possibility.)

Jona

marko37
06-16-2003, 07:30 AM
Thank you for your prompt response. I changed the javascript declaration as you recomended, unfortunatly no improvment in the NS problem. I posted the functioning script at the link that I included. When viewing this in NS6 or NS7, you will see what i mean.

Thanks for your assistance !http://www.naturesbuddies.com/IAA/paintings/test.htm

Khalid Ali
06-16-2003, 07:37 AM
Your code works exactly the same way on my system using IE6+ and NS6+...please elaborate what exactly is you expect and what is this code doing thats wrong...don't let us guess that what could be wrong with your code..:D

marko37
06-16-2003, 07:48 AM
Sorry. Yes, the images transistion very rapidly (out of control) when I veiw the page in NS6 and NS7, however the slideshow works properly in IE5 and greater; at least this is what I observed on my system. I am running NT Server. I have isolated the script from the rest of the page code and have verified that the problem seems to reside only in the script. However, if it looks ok when YOU run it in IE and NS, perhaps its my OS issue ?

Just looking for some direction.


Thx
http://www.naturesbuddies.com/IAA/paintings/test.htm

Jona
06-16-2003, 09:15 AM
I've tested it in NS6.2 and it works fine for me. There should be no problems. There is a variable "interval" that is set to 5000. That means that the function will run every 5 seconds. One thing you might want to try is changing the variable name "interval" to something like "interVal" (notice the capitalization) and in the bottom of the code where it says, var runit=setInterval("function()", interval") change the variable part to interVal to match the name of the variable.

Your server has nothing to do with the JavaScript that might be executed, since JavaScript is client side; so it does not matter what your server is running.

Jona