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

Javascript not executing.

0 views
Skip to first unread message

Denny

unread,
Nov 11, 2002, 1:07:26 AM11/11/02
to
Hi,

There's a javascript animated starfield background @ http://pcsohio.com
It functions as intended in MSIE5.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


Stephen Chalmers

unread,
Nov 11, 2002, 6:37:40 AM11/11/02
to
"Denny" <gan...@rivendel.bog.invalid> wrote in message
news:1103_10...@news.opera.com...

AFAICS, this is the first place that it falls flat on its face:

WinHeight = (document.layers) ? window.innerHeight :
window.document.body.clientHeight;

This assumes that only Netscape 4 uses window.innerHeight.

--
Stephen Chalmers
E-mail: url:http://homepage.ntlworld.com/stephen.chalmers/mailme/

Lasse Reichstein Nielsen

unread,
Nov 11, 2002, 10:51:33 AM11/11/02
to
"Stephen Chalmers" <lo...@mySig.ok> writes:

> AFAICS, this is the first place that it falls flat on its face:
>
> WinHeight = (document.layers) ? window.innerHeight :
> window.document.body.clientHeight;
>
> This assumes that only Netscape 4 uses window.innerHeight.

It continues. I would say that there are too many places in that
script where it assumes that the world is only NS4 or IE, for it
to be viable to convert. I would rather write it from scratch.

/L
--
Lasse Reichstein Nielsen - l...@hotpop.com
'Faith without judgement merely degrades the spirit divine.'

0 new messages