Thanks Jeff... I think you gave me that cross-browser code before, and I
was going to go hunt it up. You saved me the trouble...
-Ron
> -----Original Message-----
> From: Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 27, 2000 6:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Digital clock display
>
>
> ron,
>
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> : From: <[EMAIL PROTECTED]>
> :
> : coolness. Now to make it work with Netscape...
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> sure, add these lines to the top of your <script> block:
>
> var IE = (document.all) ? true : false;
> var NN = (document.layers) ? true : false;
>
> then, change this line:
>
> Clock.innerHTML = timeString;
>
> to this:
>
> if(IE)
> {
> Clock.innerHTML = timeString;
> }
> else if(NN)
> {
> doc = document.layers['Clock'].document;
> doc.open();
> doc.write(timeString);
> doc.close();
> }
>
> and then change this:
>
> <DIV
> ID="Clock"
> STYLE="font-family: #Attributes.Font#; font-size:
> #Attributes.FontSize#;
> color:#Attributes.FontColor#">
>
> </DIV>
>
> to this:
>
> <DIV
> ID="Clock"
> STYLE="position: absolute; top: 0px; left: 0px; font-family:
> #Attributes.Font#; font-size: #Attributes.FontSize#;
> color:#Attributes.FontColor#">
>
> </DIV>
>
> good luck,
>
> .jeff
>
> name://jeff.howden
> game://web.development
> http://www.evolt.org/
> mailto:[EMAIL PROTECTED]
>
>
> --------------------------------------------------------------
> ----------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
s/cf_talk or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.