|
-
Thanks scottris for trying to help me out here. I have this complicated idea, and I worked it out completely before trying it as I never bumped into this problem so it is actually quite frustrating that there seems to be a problem after all.
Below is the code of the html page,
<html>
<head>
<title>time zone</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
< !-- initial fscommand-->
<script LANGUAGE="JavaScript">
< !-- hide from old browsers
// handle for the special case where we need different code for IE and NS
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all FSCommand messages from Shockwave Flash movie
function clock2_DoFSCommand(cmd, args) {
// IE and Navigator have slightly different document object models
// IE treats objects as members of "id" while in Navigator,
// embeded objects are members of "window.document.embeds[0]"
var clock = InternetExplorer ? clock2 : document.embeds["clock2"]
var OD = new Date();
function getmin() {
clock.TGotoFrame("_level0/min", OD.getMinutes());
}
function gethrs() {
clock.TGotoFrame("_level0/hrs", OD.getHours());
}
function getdate() {
clock.TGotoFrame("_level0/date", OD.getDate()-1);
}
function getmon() {
clock.TGotoFrame("_level0/month", OD.getMonth());
}
function getwkd() {
clock.TGotoFrame("_level0/weekday", OD.getDay());
}
function getsec() {
clock.TGotoFrame("_level0/sec", OD.getSeconds());
}
// initial clock
if ( cmd=="initclock" ) {
getmin();
gethrs();
getdate();
getmon();
getwkd();
getsec();
}
}
// end hide-->
</script>
<script LANGUAGE="VBScript">
< !--hide from old browsers
// handle swf sent VBScript events to IE with AXcontrol
Sub clock2_FSCommand(ByVal cmd, ByVal args)
call clock2_DoFSCommand(cmd, args)
end sub
// end hide-->
</script>
< !--end initial fscommand-->
<body bgcolor="#666666">
<p align="center">
<object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash3/cabs/swflash.cab#version=3,0,0,0"
ID="clock2" NAME="clock2" WIDTH="500" HEIGHT="300" border="0" vspace="0" hspace="0">
<param name="movie" value="clock2.swf">
<param name="quality" value="high">
<param name="salign" value="TR"><embed NAME="clock2" SRC="clock2.swf" WIDTH="500" HEIGHT="300"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
SWLIVECONNECT="true" TYPE="application/x-shockwave-flash" QUALITY="high" SALIGN="TR"
border="0" vspace="0" hspace="0">
</object>
</p>
</body>
</html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|