1

Topic: embed

Hi,

first of all I have to say that you delivered great work.

No I do have the following question.

I don`t want to use the javascript-code to show the clock but I wanted to use a embed-code.

How should the code like like with all possible options in it ?


Regards,

Mhstee

2

Re: embed

Hello and thank you.

The answer to your question is in the code below:

<object type="application/x-shockwave-flash" data="media/devAnalogClock.swf" width="200" height="200">
    <param name="movie" value="media/devAnalogClock.swf" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="flashvars" value="clockSkin=media/skins/skin004.png&arrowSkin=7&arrowScale=70&widgetUrl=http://www.devbox.info/" />
    <p><a href="http://www.devbox.info/">Analog flash clock widget</a></p>
</object>

With a default skin this code generates this clock with a link on it:

http://www.devbox.info/media/forum/demo_embed_clock.gif

You must set all parameters described here in flashvars param.

I hope this helps you.

Good luck!

3

Re: embed

I just wanted to use the embed-parts, not the object-parts.

I do have the following that works, with colored hands as an example. But strange enough after a page-refresh the sec/min/hour hands become black !!

Why? and how to solve this?

<EMBED src="devAnalogClock.swf?arrowSkin=3&arrowScale=200&arrowHColor=0xffff00&arrowMColor=0xff0000&arrowSColor=0x000000" WIDTH="200" HEIGHT="200" TYPE="application/x-shockwave-flash"></EMBED>

4

Re: embed

You must set colors not in hexadecimal (0xffff00) format bus as strings (ffff00) like this:

<EMBED src="devAnalogClock.swf?arrowSkin=3&arrowScale=200&arrowHColor=ffff00&arrowMColor=ff0000&arrowSColor=000000" WIDTH="200" HEIGHT="200" TYPE="application/x-shockwave-flash"></EMBED>

5

Re: embed

Thanks, that sorted out the problem.

6

Re: embed

<object type="application/x-shockwave-flash" data="media/devAnalogClock.swf" width="200" height="200">
    <param name="movie" value="media/devAnalogClock.swf" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="flashvars" value="clockSkin=media/skins/skin004.png&arrowSkin=7&arrowScale=70&widgetUrl=http://www.devbox.info/" />
    <p><a href="http://www.devbox.info/">Analog flash clock widget</a></p>
</object>

Hello :-)

Just discovered these beautiful clocks last week. Very nice job.


Is it possible to use the UTCTime parameter in the code above?

I tried to put in the "flashvars" parameter, but I can not get it to work.

Best regards,

Sanook

7

Re: embed

Hello, yes it is possible.

<object type="application/x-shockwave-flash" data="media/devAnalogClock.swf" width="200" height="200">
    <param name="movie" value="media/devAnalogClock.swf" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="flashvars" value="clockSkin=media/skins/skin004.png&arrowSkin=7&arrowScale=70&widgetUrl=http://www.devbox.info/&UTCTime=<?php echo gmdate('H:i:s'); ?>&timeOffset=3600" />
    <p><a href="http://www.devbox.info/">Analog flash clock widget</a></p>
</object>

This code generates clock that shows you UTC+1 timezone time.

8

Re: embed

Administrator wrote:

Hello, yes it is possible.

<object type="application/x-shockwave-flash" data="media/devAnalogClock.swf" width="200" height="200">
    <param name="movie" value="media/devAnalogClock.swf" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="flashvars" value="clockSkin=media/skins/skin004.png&arrowSkin=7&arrowScale=70&widgetUrl=http://www.devbox.info/&UTCTime=<?php echo gmdate('H:i:s'); ?>&timeOffset=3600" />
    <p><a href="http://www.devbox.info/">Analog flash clock widget</a></p>
</object>

This code generates clock that shows you UTC+1 timezone time.


I still having this problem, the clock was stuck and not moving even i try your new code for UTC Time

Have you try this code before?

Actually i trying to make multiple,and it work without UTC..but when i put UTC code..it become stuck