When I look at my source this is what gets rendered:
<div id="myVideo1102"><a href="http://www.macromedia.com/go/getflashplayer">För att se filmen behöver du en flashspelare. Hämta den här.</a></div><script type="text/javascript"> var flashvars = {file: '/media/995/gyrid_tone2.flv',image: '/images/preview.jpg',frontcolor: 'ffffff',lightcolor: 'cc9900',controlbar:'none'};
var mttVid1102 = new SWFObject("/endforward umbraco flv/jwplayer/player.swf","ply","180","140","9",flashvars); mttVid1102.addParam("allowfullscreen","true"); mttVid1102.addParam("allowscriptaccess","always");
mttVid1102.write("myVideo1102"); </script>
Im no javascripter so for mer its not obvióus what is wrong. Anyone?
Using flashvars
Hi!
Maybe this is not the right forum for flashvar-questions but people here is so friendly :)
Im using tje jwplayer to play flv-files on my site wich wokrs nice but now I want to add some flashvars.
The problem is that its not working. im trying to add a preview-image but nothing happens
I tried to do this:
But then the xslt crashes of some reason. I also tried to add a variable and a param without success.
Try doing something like this:
<div class="par" id="inspiration{$idNum}"></div>
<script type="text/javascript">
var flashvars = {file: '<xsl:value-of select="$file"/>',image: '<xsl:value-of select="$fileImage"/>',frontcolor: 'ffffff',lightcolor: 'cc9900',skin: '/swf/overlay.swf',controlbar:'none'};
var params = {menu: 'false',allowfullscreen:'false',allowscriptaccess:'always',wmode:'opaque',bgcolor:'#002c39'};
var attributes = {};
swfobject.embedSWF('/swf/player.swf', 'inspiration<xsl:value-of select="$idNum" />', '290', '177', '9.0.0','/swf/expressInstall.swf', flashvars, params, attributes);
</script>
I get an xslt error on <xsl:valueof at flashvars:
When I look at my source this is what gets rendered:
Im no javascripter so for mer its not obvióus what is wrong. Anyone?
Solved it finally:
is working on a reply...