Post by tomymot on Oct 19, 2007 11:50:59 GMT -5
good morning forum.
I have the following problem, I did a search but couldn't find any similar issue...so forgive me if I repeat a question and just link me away.
so the deal is. I want to embed flash video on my greymatter blog, using the following javascript+player
swfobject.js + flvplayer.swf
in my "static" pages is working properly, but when I try to embed in greymatter I do not see anything apart from Download Flash :-)
What I have done is that I have added the javascript code in the "head" part of each page
<script type="text/javascript" src="swfobject.js"></script>
and this is indeed coming out (I see it in the head source of generated page)
then I have the swfobject.js + flvplayer.swf files in greymatter folders (both primary and archive, to be sure)
and then I use following code in the ENTRY that I want to show...it is correctly interpreted (I do not see the text in the entry) but is doing nothing.
<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("flvplayer.swf","single","512","390","9");
s1.addParam("allowfullscreen","false");
s1.addVariable("file","kina4.flv");
s1.addVariable("image","standardpreview.jpg");
s1.addVariable("width","512");
[...]
s1.write("player1");
</script>
I have tried to link to kina4.flv (this is the file to show) by full url/relative url and by moving the file in all folders, but it looks simply is not running the script.
any idea? obviously I am not a code guru, but I could get the thing working fine in a normal HTML page on my site, not on greyforum and this makes me at a dead end.
if any idea,
thank you
t
p.s. the embedding tool is
www.jeroenwijering.com/?item=jw_mp3_player
pretty simple to be honest...
I have the following problem, I did a search but couldn't find any similar issue...so forgive me if I repeat a question and just link me away.
so the deal is. I want to embed flash video on my greymatter blog, using the following javascript+player
swfobject.js + flvplayer.swf
in my "static" pages is working properly, but when I try to embed in greymatter I do not see anything apart from Download Flash :-)
What I have done is that I have added the javascript code in the "head" part of each page
<script type="text/javascript" src="swfobject.js"></script>
and this is indeed coming out (I see it in the head source of generated page)
then I have the swfobject.js + flvplayer.swf files in greymatter folders (both primary and archive, to be sure)
and then I use following code in the ENTRY that I want to show...it is correctly interpreted (I do not see the text in the entry) but is doing nothing.
<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("flvplayer.swf","single","512","390","9");
s1.addParam("allowfullscreen","false");
s1.addVariable("file","kina4.flv");
s1.addVariable("image","standardpreview.jpg");
s1.addVariable("width","512");
[...]
s1.write("player1");
</script>
I have tried to link to kina4.flv (this is the file to show) by full url/relative url and by moving the file in all folders, but it looks simply is not running the script.
any idea? obviously I am not a code guru, but I could get the thing working fine in a normal HTML page on my site, not on greyforum and this makes me at a dead end.
if any idea,
thank you
t
p.s. the embedding tool is
www.jeroenwijering.com/?item=jw_mp3_player
pretty simple to be honest...