Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: JavaScript Time IE/Netscape
From: Jon Williams
Date: Tue, 20 Jun 2000 16:21:14 +0100

yes, that IS the problem.

you've got to create a movie OBJECT.
you're trying to refer to it by name/id
which only works in IE.

Check out the FSCommand tutorial
at moock.org to find out how to refer
to create the movie object in netscape.

-jon

Eric Stewart wrote:

> navigation.setVariable may be your problem. If you are referring to the
> setVariable object of navigator, I don't believe Netscape supports this
> object. Hope this helps. That is the only thing that looks fishy.
> Eric Stewart
>
> -----Original Message-----
> From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Daniel
> Guerrier
> Sent: Tuesday, June 20, 2000 9:45 AM
> To: flasheratchinwag [dot] com
> Subject: FLASH: JaveScript Time IE/Netcape
>
> <!-- Begin
> var timerID = null;
> var timerRunning = false;
> function stopclock
>
> if(timerRunning)
> clearTimeout(timerID);
> timerRunning = false;
> }
> function showtime ()
>
> var movie =
> window.document.navigation;
> var now = new Date();
> var hours = now.getHours();
> var minutes = now.getMinutes();
> var seconds = now.getSeconds()
> var timeValue = "" + ((hours >12)
> ? hours -12 :hours)
> if (timeValue == "0") timeValue =
> 12;
> timeValue += ((minutes < 10) ?
> ":0" : ":") + minutes
> timeValue += ((seconds < 10) ?
> ":0" : ":") + seconds
>
> navigation.SetVariable("clock",
> timeValue);
> timerID =
> setTimeout("showtime()",1000);
> timerRunning = true;
> }
> function startclock()
>
> stopclock();
> showtime();
> }
> // End -->
>
> I'm using the above JavaScript to update a textfield
> in
> flash with the current. It work fine with IE but not
> Netscape. Can anyone figure out why?
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages with Yahoo! Messenger.
> http://im.yahoo.com/
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
> www.flashforward2000.com
> Produced by United Digital Artists and lynda.com
> Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
> shockwave.com and Electric Rain.
> 1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
> Register before June 30 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
> www.flashforward2000.com
> Produced by United Digital Artists and lynda.com
> Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
> shockwave.com and Electric Rain.
> 1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
> Register before June 30 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: JavaScript Time IE/Netscape, Eric Stewart

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]