Closed Bug 225916 Opened 21 years ago Closed 21 years ago

clock.htm not opening correctly in mozilla

Categories

(SeaMonkey :: General, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: williamb6, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031007 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031007 clock.htm not opening correctly in mozilla. Will open correctly in MS Internet explorer Ver 5.00 & Netscape Communicator ver 4.76 It seems to be a compatability problem with Mozilla or a problem with clock.htm Reproducible: Always Steps to Reproduce: 1.file clock.htm on hard drive 2.in mozilla chose file, open file, chose clock.htm 3.flie opens with text but not moving clock Actual Results: File opens with text but no moving clock Expected Results: file opens and shows text & moving clock, other browsers show text & moving clock. I received clock.htm as an attachment & when i opened it I thought it was faulty. Later I tried other browsers & it opened with no problem. It may only be a small problem. If it dosent open this file Mozilla may have problems with other files. If I cant add an addachment please E-mail at williamb6@bigpond.com & I will send you the file clock.htm
The file is carefully designed to only work with IE or Netscape 4: ns=(document.layers); ie=(document.all); if (ie) { // do something } if (ns) { // do something } // no else clause, so other browsers need not apply. As it happens, we can render the "IE" version of this content perfectly; the page just randomly decides not to tell us about it.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
What is the recommended way to make this script work? I tried hacking the original script by performing the following: ns=0; ie=1; //ns=(document.layers); //ie=(document.all); I ended up with a black blob in the upper left corner.
Oh, heh. I missed the script using window.foo to refer to elements like <div id="foo">, an IE-ism.... So lines like: Oh.style.top=window.document.body.scrollTop; should be: document.getElementById("Oh").style.top = window.document.body.scrollTop; That's supported by all browsers currently available except Netscape 4 (IE supports it too).
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: