I tried this using NS 4.75 (W95) and got an error (below):
IE 5 (Win95) worked fine though (not that I usually use IE 5 for anything 
but testing)
Opera (Mac OS9.2) it didn't work either.
Looks like it is IE specific javascript code.

JavaScript Error:
http://jongrieve.net/faq/html/rollovers/text.taf, line 36:

unterminated string literal.

         ValueID = "valu
..................^

JavaScript Error: http://oz.valueclick.com/jsmaster, line 4:

ValueVersion is not defined.
JavaScript Error: http://oz.valueclick.com/jsmaster, line
34:

ValueHost is not defined.

cheers
Garth

At 10:42 2/05/2002 +0100, you wrote:
>Dave & Ben,
>
>The concept of "innerHTML" is great, but as you've seen it is unsupported in
>older versions of NN.  This has bugged me for ages, and I recently pieced
>together some code that'll do this on multiple browsers.
>
>You can find an example here:
>   http://jongrieve.net/faq/html/rollovers/text.taf
>
>Regards,
>Jon
>
>
>
>
>-----Original Message-----
>From: Dave Shelley [mailto:[EMAIL PROTECTED]]
>Sent: 01 May 2002 8:15
>To: Multiple recipients of list witango-talk
>Subject: RE: Witango-Talk: OT - Real-time Counter Increment Script
>
>
>Very cool Ben!
>That works beautifully, in IE at least :)
>
>Dave
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Johansen
> > Sent: Wednesday, May 01, 2002 2:28 PM
> > To: Multiple recipients of list witango-talk
> > Subject: RE: Witango-Talk: OT - Real-time Counter Increment Script
> >
> >
> > Hi.
> >
> > Regarding #3:
> >
> > I place a <SPAN ID=JSResults></SPAN> in the place I want it to display
> > and then in the JavaSrcipt I use the innerHTML like so...
> >
> > JSResults.innerHTML = Val;
> >
> > This way you can dynamically change the text on a page from JavaScript.
> >
> > I think this is what you are referring to ;-)
> >
> > Ben Johansen - http://www.pcforge.com
> > Authorized WiTango Reseller http://www.pcforge.com/WiTangoGoodies.htm
> > Latest downloads & List Archives @ http://www.witango.ws
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]] On Behalf Of Dave Shelley
> > Sent: Wednesday, May 01, 2002 8:09 AM
> > To: Multiple recipients of list witango-talk
> > Subject: RE: Witango-Talk: OT - Real-time Counter Increment Script
> >
> > Nathan,
> >
> > In answer to your questions (not in order):
> >
> > 2 you can pad the value with 0's
> >
> > val = val+''; //force to a string
> > if (val.indexOf('.') == -1) // no decimal places
> >   val = val + '.00';
> > else if (val.indexOf('.') == val.length-2) // 1 decimal place
> >   val = val + '0';
> >
> > 1) take the padded string, break it up with substring() and insert
> > commas
> >
> > 3) I wish! If anyone else knows how to do that I would love to know too.
> > The
> > only way I can think of is to use an iFrame in IE and put the text in
> > there.
> >
> > Dave.
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Nathan Hitchcock
> > > Sent: Tuesday, April 30, 2002 7:04 PM
> > > To: Multiple recipients of list witango-talk
> > > Subject: RE: Witango-Talk: OT - Real-time Counter Increment Script
> > >
> > >
> > > Dave,
> > >
> > > This is GREAT!  But now I'm going to get picky...
> > >
> > > 1) Is there a way to format the output dollar amount with commas?
> > > (ex: 1,558,259.69)
> > >
> > > 2) Is there a way to force the number to always contain two digits?
> > > As it counts now, it sometime displays the number as 1234.5 or 1234
> > > rather than 1234.50 or 1234.00.
> > >
> > > 3) What alternatives are there to displaying the value in a text input
> > > field?  Are there other document objects that can be used, such as one
> > > that can be displayed in the middle of a text paragraph?
> > >
> > >
> > > Nathan 'Never Satisfied' Hitchcock
> > > HLI Systems
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Shelley
> > > Sent: Tuesday, April 30, 2002 2:48 PM
> > > To: Multiple recipients of list witango-talk
> > > Subject: RE: Witango-Talk: OT - Real-time Counter Increment Script
> > >
> > >
> > > Nathan,
> > >
> > > Here's a simple code snippet that should help:
> > >
> > > Dave.
> > > --------------------------
> > > <html><head>
> > > <script language=javascript>
> > >   var inc1=21.23;
> > >   var inc2=30.67;
> > >
> > >   function incCounters() {
> > >     document.counters.count1.value =
> > > precision((document.counters.count1.value*1) + inc1,2);
> > >     document.counters.count2.value =
> > > precision((document.counters.count2.value*1) + inc2,2);
> > >     window.setTimeout('incCounters()',1000);
> > >   }
> > >   function precision (x,y) { // returns x with upto y decimal places
> > >     return (Math.floor(x*Math.pow(10,y)+.5)/Math.pow(10,y));
> > >   }
> > >
> > > </script>
> > > <body onLoad="window.setTimeout('incCounters()',1000)">
> > > <table>
> > > <form name=counters>
> > > <tr valign=top>
> > >     <td>First Counter</td>
> > >     <td>$<input type=text size=10 name=count1 value="123.45"></td>
> > > </tr>
> > > <tr valign=top>
> > >     <td>Second Counter</td>
> > >     <td>$<input type=text size=10 name=count2 value="234.56"></td>
> > > </tr>
> > > </form>
> > > </table>
> > > </body>
> > > </html>
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Nathan Hitchcock
> > > > Sent: Tuesday, April 30, 2002 4:56 PM
> > > > To: Multiple recipients of list witango-talk
> > > > Subject: Witango-Talk: OT - Real-time Counter Increment Script
> > > >
> > > >
> > > > Hello all,
> > > >
> > > > I have a slightly off topic questions for the JavaScript gurus out
> > > > there....
> > > >
> > > > I'm working on a Witango app that pulls two values from a db: a
> > > start
> > > > value and a per second increment value.  Both fields are Money
> > > > datatypes.  I'd like to have the start value incremented by the per
> > > > second value once per second and displayed to the user in real-time.
> > > > I've seen JavaScript out there that place a realtime clock on the
> > > > page, as well as one that will count down from a specified value, so
> > > > I'm guessing this is in fact possible.
> > > >
> > > > Once thing to note is that there will potentially be dozens of
> > > > instances of this counter on a single page, depending on how many
> > > rows
> > > > are returned in the search.  From the little I know about JS, I'm
> > > sure
> > > > that is going to complicate things.
> > > >
> > > > Thanks in advance for any insight you might be able to provide.
> > > >
> > > > Nathan Hitchcock
> > > > HLI Systems
> > > >
> > > >
> > > ______________________________________________________________________
> > > __
> > > > TO UNSUBSCRIBE: send a plain text/US ASCII email to
> > > [EMAIL PROTECTED]
> > > >                 with unsubscribe witango-talk in the message body
> > >
> > > ______________________________________________________________________
> > > __
> > > TO UNSUBSCRIBE: send a plain text/US ASCII email to
> > > [EMAIL PROTECTED]
> > >                 with unsubscribe witango-talk in the message body
> > >
> > >
> > ________________________________________________________________________
> > > TO UNSUBSCRIBE: send a plain text/US ASCII email to
> > [EMAIL PROTECTED]
> > >                 with unsubscribe witango-talk in the message body
> >
> > ________________________________________________________________________
> > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> >                 with unsubscribe witango-talk in the message body
> >
> >
> > ________________________________________________________________________
> > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> >                 with unsubscribe witango-talk in the message body
>________________________________________________________________________
>TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
>________________________________________________________________________
>TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to