Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Javascript not executing.

1 view
Skip to first unread message

Denny

unread,
Nov 4, 2002, 11:08:17 AM11/4/02
to
Hi,

There's a javascript animated starfield background on the entrance page to http://pcsohio.com
It functions as intended in IE5.x, and Netscape 4.x, but is quite absent under Opera 6.05 and NS7x.

What is causing this, and is it correctable?
[and if so, how?]

tia,

Denny


Richard Cornford

unread,
Nov 13, 2002, 5:55:37 PM11/13/02
to
Denny wrote in message <1103_10...@news.opera.com>...

>Hi,
>
>There's a javascript animated starfield background on the entrance page
to http://pcsohio.com
>It functions as intended in IE5.x, and Netscape 4.x, but is quite
absent under Opera 6.05 and NS7x.


It is not quite absent on NS 7 and Opera, the stars are there, they are
just all stacked on top of each other in the upper left corner of the
window (and don't move of course).

>What is causing this, and is it correctable?
>[and if so, how?]


The script was not written by a competent JavaScript programmer and
assumes that on any browser without a document.layers object (all but
Netscape 4.n) multiple DIV elements that have all been given the same ID
will be available as a property of the window object (named for that ID)
that is a collection of references to all of those DIVs. Unfortunately,
this assumption is only true on IE browsers (and maybe a few others but
not Mozilla, Netscape 6+ or Opera).

A competent (and up-to-date) JavaScript programmer could have the script
working on Netscape 6+ and Opera in less that 10 minutes and it would
take less than 2 hours to transform it into a robust and efficient
cross-browser JavaScript (as there are some other obvious flaws in the
script that will cause it to fail under some conditions, such as CSS
compatible rendering mode on even IE 5.5+).


Richard.


0 new messages