Example 5

This example shows how to set UTC/GMT time and timezone offset in seconds. It also illustrates how to hide seconds arrow, and set widget url.

ATTENTION: You must have PHP support on your server, because as you see on line #9 we use php function gmdate() to get UTC/GMT time.

Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<p id="xorAnalogClock"><a href="http://www.xorbin.com/">Analog flash clock widget</a></p>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript"><!--
    var flashvars = {
        clockSkin: "media/skins/skin004.png",
        arrowSkin: "7",
        showSeconds: "no",
        arrowScale: "70",
        UTCTime: "<?php echo gmdate('H:i:s'); ?>",
        timeOffset: "3600",
        widgetUrl: "http://www.xorbin.com/"
    };
    swfobject.embedSWF(
        "xorAnalogClock.swf",
        "xorAnalogClock",
        "220",
        "220",
        "9",
        "expressInstall.swf",
        flashvars,
        {scale: "noscale", wmode: "transparent"}
    );
// --></script>

Result

Analog flash clock widget




By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close