Pulling my hair out..

wxdqz

New Member
Okay, it works GREAT in IE5, IE5.5, & IE6. Can't get anything from Netscape 4.79 OR 6.2.3. It's a simple clock script that does not use a text box to display in. Here's what I have, so far.

In a table cell, I have the following code:
<span id="datedisplay" style="position:absolute;left:11;top:15;"></span>

Immediately after that line, I placed the Javascript function. I also had it within the HEAD tags, and I moved it to after the BODY close tag, it didn't make any difference when tested. I won't post the WHOLE script, as it's kinda lengthy, but here's the important bits:

<SCRIPT language="JavaScript" TYPE="text/javascript">
<!-- Hide from NonJS browsers
function show() {
[all variables go here]

datedisp = jhours + ":" + jminutes + ":" + jseconds + dn + " " + jday + " " + jmonth + " " + jdayt + " " + jyear + "";
if (document.all) {
datedisplay.innerHTML=datedisp;
}
else {
x = document.layers["datedisplay"];
dd = '<P class="clocktextred">'+datedisp+'</p>';
x.document.write(dd);
x.document.close();
}
setTimeout("show();",1000);
}
show();

// -->
</script>

Someone told me that Netscape 4 doesn't handle layers, very well. Is there something else that I should be using, instead? Something that will do the same thing as IE's innerHTML?

WolfShade
 
Back
Top