Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: JaveScript Time IE/Netcape |
From: | Daniel Guerrier |
Date: | Tue, 20 Jun 2000 14:59:34 +0100 |
<!-- 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 helpchinwag [dot] com
Replies
RE: FLASH: JavaScript Time IE/Netscape, Eric Stewart
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]