EDIT: read below for flash clock embed code.
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 :)
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?
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.
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
Thanks. I need to stop doing this when I am half asleep...
did u get it all working?
Yeah, Once I woke up and understood what you wrote..
Thanks
Curt
yw :)
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/
The size is set by the two Width and Height entries. Yours is set to 100 x 100. If you want a smaller clock, change both sets of values to something smaller. Try 75 x 75 if you like. Flash clocks are fully scaleable.
Hey thanks for the reply, I guess it I had it set wrong in ther js/html block and I had it set to just html. But I got it working Moocat helped.
Cheers,
bz
changed my code, now i have it set to have a transparent background and take the background color of the them you are using! :)
<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>
Nice code ;) it took me a while to figure it out but it works!
http://forum.sirfanaticsholland.com/index.php?action=forum
Grtzz
you may want to adjust the width of your left column?
Quote from: Moocat on October 04, 2005, 08:29:18 PM
you may want to adjust the width of your left column?
I've noticed this before... i tried to adjust the left column and change the size of the clock but it's still the same.
No change whatsoever.
Does your theme only do that if the flash clock is on?
that is very odd... what in the code i provided did you change besides the dimensions?
well i have several differnt clocks now! xD thank you so much moocat :0
quick question though:
is there a way to make the clocks selectable to the other users? so far, i'm the only one who can change it. selectable like themes, i mean.
:)
i'm sure if you made a drop down menu and set the name of the clock in the code i provided to a variable, you can assign different clocks to that variable? i'm not the best with that type of stuff but i'll try and take a stab at it later today
Quote from: Moocat on October 05, 2005, 02:36:59 PM
i'm sure if you made a drop down menu and set the name of the clock in the code i provided to a variable, you can assign different clocks to that variable? i'm not the best with that type of stuff but i'll try and take a stab at it later today
xD neither am i.
but i wish you luck! :)
i have a decent amount of other stuff to do so i may or may not get a chance today, i'm working on making a few 3d models for animations and the like atm.
As long as you show your work when you are done. :)
lol may end up being a pretty big project, i'm trying to model a space ship (with all those details on it [imagine a star wars bad-guy ship])
man sorry about the lack of time, i could have written it by now, but just been preoccupied with this 3d thing, then a couple of papers (had three this week), now i'm working on another paper, then fall break which i'll be busy all the way through til next wednesday. it should be fairly quick to write up, but like i said i had prior responsibilities :(
anyway, i MAY have time to do it over break this weekend as i'm bringing one of my computers home (i actually have a desktop and a laptop here in my dorm) but can't guarantee how much time i'll have! ttyl gotta get back to my paper
sorry i've been really busy lately, but i got some time yesterday and this morning to work on it. i could get the selection dropdown menu to come up, with the options, but selecting something didn't change anything. sorry, i tried my best :(
A variable set just there in the block will not be saved. So while a dropdown could be provided, it will just go back to the original again.
What you need is a setting in the profile for multiple clocks, and using that variable to set the type of clock.
yeah. no way i'd be able to do that lol
Got the clock working no problem's there,but I be damned if I get the thing centered.I have center in the command line but its sit's left in its box?
Any idea's.
<center> CODE </center>
That's what I use. HTML
awesome!!! Can't believe I got it to work perfectly the first time. Probably cause I am using default SMF theme!! Thanks for the script!!
http://www.mytechforum.net
Çalışmıyo bunlar ben Çalıştıramadım yawf
You have to keep the english language in this forum.
There are language specific forums where you can get support in other languages, please use the right forum for you language.
What they say G6?
Have no idea :)
I only understand Swedish, Danish, Norwegan, English, and some German and Finnish, and very little Spanish, so that language is way out of my league :o
it's turkish :D
I used the clock, but it doesn't work, just turns up a big space and when I right click it says "Movie not loaded... | Adobe Flash Player 9"
go to macromedia.com and download the latest flash player
that could be ur problem that u dont have it installed
I have flash player 9 (akulion, it's ADOBE!!!) and it works perfectly.
maybe ur using the wrong embed codes for it?
check down at kirupa.com its a flash forum
or at flashkit.com
both are the most popular - also ull be sure t pick up some cool stuff while down there
...... I don't want to have a flash-loaded site