TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,985
  • Total Topics: 21,321
  • Online today: 930
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 899
  • Total: 899

flash clocks

Started by Moocat, September 08, 2005, 04:58:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Moocat

EDIT: read below for flash clock embed code.

Moocat

#1
ok the problem is basically solved now... all i had to do was change the type of block to a javascript/html from a simple js block, and it works in IE and FF. for some reason, when i typoed and said the path was "/foum/clock.swf/" IE displayed the clock but FF did not. wierd huh? anyway, now its centered perfectly :) if anyone wants to know how to embed a clock in a simple js/html (*a plain html block won't work!!*) block, heres the code!

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="clock" width=157 height=157 bgcolor=white>
<PARAM NAME=movie VALUE="/forum/clocks/amber.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME="wmode" value="transparent">
<EMBED src="/forum/clocks/amber.swf" quality=high NAME="clock" ALIGN="center" width=157 height=157 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode=transparent>
</EMBED>
</OBJECT>

i had the width and height set to 162 to fit my block, but you have to change that to work for you... all you have to do to get your clock working is change the "/forum/clock.swf" to the path that your clock is in, and "clock.swf" to the filename and it will work :)
http://www.adamdorman.com/flash_clocks1.php is great for flash clocks :)

carver

is this a version 0.7.2 block or should this work with 0..6.5 ?
I get the block of proper size but no clock...
Any ideas?

Moocat

you need to download the clock file (of course) and upload it to the directory specified. also name it clock.swf and it should work fine.

Moocat

remember also, put the code in an html/javascript block, and make it without a title bar or background. then all you have to do is choose the clock and set the dimensions right and it should work. if not, maybe you don't have macromedia flash? try it in both firefox and IE see if it work in either, because you have to install macromedia flash seperately

carver

Thanks. I need to stop doing this when I am half asleep...

Moocat

did u get it all working?

carver

Yeah, Once I woke up and understood what you wrote..
Thanks
Curt


bzmorrow

#9
This is how I have it set up, why can't i get this smaller then it is? Its friggin huge!

Quote<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="clock" width=100 height=100>
<PARAM NAME=movie VALUE="glow.swf">
<PARAM NAME=quality VALUE=high>
<EMBED src="/forum/glow.swf" quality=high NAME="clock" ALIGN="center" width=100 height=100 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

http://inspectorsforum.com/forum/

This website is proudly hosted on Crocweb Cloud Website Hosting.